public void TestCreateMap_CanSetupConfigration() { // arrange MapperConfigration config = new MapperConfigration(); // act config.CreateMap <PersonDto, Person>(); // assert Assert.AreEqual(1, config.EntryCount); }
public void TestCreateMap_EntryCountShouldBeTwo() { // arrange MapperConfigration config = new MapperConfigration(); // act config.CreateMap <PersonDto, Person>(); config.CreateMap <Person, PersonDto>(); // assert Assert.AreEqual(2, config.EntryCount); }
public void TearDown() { _config = null; }
public void TearUp() { _config = new MapperConfigration(); }