public void MapEFToBOList() { var mapper = new DALLocationMapper(); Location entity = new Location(); entity.SetProperties(1, 1m, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); List <BOLocation> response = mapper.MapEFToBO(new List <Location>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALLocationMapper(); Location entity = new Location(); entity.SetProperties(1, 1, 1, "A"); List <BOLocation> response = mapper.MapEFToBO(new List <Location>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALLocationMapper(); Location entity = new Location(); entity.SetProperties(1, 1, 1, "A"); BOLocation response = mapper.MapEFToBO(entity); response.GpsLat.Should().Be(1); response.GpsLong.Should().Be(1); response.LocationId.Should().Be(1); response.LocationName.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALLocationMapper(); var bo = new BOLocation(); bo.SetProperties(1, 1, 1, "A"); Location response = mapper.MapBOToEF(bo); response.GpsLat.Should().Be(1); response.GpsLong.Should().Be(1); response.LocationId.Should().Be(1); response.LocationName.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALLocationMapper(); Location entity = new Location(); entity.SetProperties(1, 1m, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); BOLocation response = mapper.MapEFToBO(entity); response.Availability.Should().Be(1); response.CostRate.Should().Be(1m); response.LocationID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALLocationMapper(); var bo = new BOLocation(); bo.SetProperties(1, 1, 1m, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); Location response = mapper.MapBOToEF(bo); response.Availability.Should().Be(1); response.CostRate.Should().Be(1m); response.LocationID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Name.Should().Be("A"); }