public void Map_toDomain_Test() { //Arange var mapper = new SectionMapper(); var expected = new ComparableSection { Order = 1, ScriptId = 1, SectionId = 1, Text = "1", EntityState = EntityState.Unchanged }; var section = new TransferSection { Order = 1, ScriptId = 1, SectionId = 1, Text = "1", EntityState = EntityState.Unchanged }; //Act var actual = mapper.Map(section); //Assert Assert.AreEqual(expected, actual); }
public void Map_NullSection_ReturnsNull_Test() { //Arange ISectionMapper mapper = new SectionMapper(); //Assert Assert.That(mapper.Map(section: null), Is.Null); }