Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Mocking frameworks

As mentioned earlier, in the context of software testing, mocking refers to creating simple objects to simulate the behavior of "real" objects. When the unit under test has dependencies on other modules, it is very useful to create mocks of these modules. Doing so allows you to isolate the behavior of the unit under test. It also allows you to simulate multiple conditions that may be difficult to replicate in real life. Mocking makes it easy to test success, failure, and edge case conditions by simulating different inputs or outputs returned by the mock object.

You can mock interfaces and classes by defining your own classes that derive from them, but this can get cumbersome and time consuming. There are multiple free C# ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content