public void MapCommonConditionSuccessTest() { var item = new SiteItem(1, "TestSite", "TestAddress"); var mapper = new SiteItemMapper(); Db.Entities.SiteItem result = mapper.Map(item); Assert.AreEqual(1, result.Id); Assert.AreEqual("TestSite", result.Name); Assert.AreEqual("TestAddress", result.Address); }
public void MapCommonConditionSuccessTest() { var item = new SiteItem { Id = 1, Address = "TestAddress", Name = "TestSite" }; var mapper = new SiteItemMapper(); Core.SiteItem result = mapper.Map(item); Assert.AreEqual(1, result.Id); Assert.AreEqual("TestSite", result.Name); Assert.AreEqual("TestAddress", result.Address); }