public void CouldNotLocate_SSG_RealEstateProperty_should_map_to_RealEstateProperty_correctly() { SSG_Asset_RealEstateProperty property = new SSG_Asset_RealEstateProperty { CouldNotLocate = true }; RealEstateProperty p = _mapper.Map <RealEstateProperty>(property); Assert.AreEqual(Constants.CouldNotLocate, p.LegalDescription); }
public void SSG_RealEstateProperty_should_map_to_RealEstateProperty_correctly() { SSG_Asset_RealEstateProperty property = new SSG_Asset_RealEstateProperty { PID = "pdi", TitleNumber = "title123", AddressLine1 = "line1", City = "city" }; RealEstateProperty p = _mapper.Map <RealEstateProperty>(property); Assert.AreEqual("pdi", p.Pid); Assert.AreEqual("title123", p.TitleNumber); Assert.AreEqual("line1", p.PropertyAddress.AddressLine1); Assert.AreEqual("city", p.PropertyAddress.City); }