Demonstrates why we'd use AutoMapper instead of manually copying property values: less code and easier maintenance.
tests.cs
contains several unit tests that demonstrate the power of AutoMapper. Some are designed to fail to make the point. 😄
object.cs
contains the objects under test. AutoMapperSamples.Destinations.FlatStanley
is our flattened object. The AutoMapperSamples.Sources
namespace contains the hierarchical objects which let us have an object-oriented Stanley.
configurators.cs
contains a method to construct the AutoMapper configuration.
utilities.cs
contains a factor method which constructs a FlatStanley
by manually copying property values.