May 2018
Intermediate to advanced
334 pages
7h 25m
English
As the name suggests, fake objects are objects that are not real. Fake objects are for testing purposes and contain actual code, but not with all of the genuine functionality. For instance, we can create a fake object to fetch data records using Entity Framework Core; in this case, we prefer to use InMemory (https://docs.microsoft.com/en-us/ef/core/miscellaneous/testing/in-memory) instead of a direct DB connection.