public void MapEntityToModelList() { var mapper = new DALLocationMapper(); Location item = new Location(); item.SetProperties(1, 1, 1, "A"); List <ApiLocationServerResponseModel> response = mapper.MapEntityToModel(new List <Location>() { { item } }); response.Count.Should().Be(1); }
public void MapEntityToModel() { var mapper = new DALLocationMapper(); Location item = new Location(); item.SetProperties(1, 1, 1, "A"); ApiLocationServerResponseModel response = mapper.MapEntityToModel(item); response.GpsLat.Should().Be(1); response.GpsLong.Should().Be(1); response.LocationId.Should().Be(1); response.LocationName.Should().Be("A"); }