public void MapBOToModel() { var mapper = new BOLAirlineMapper(); BOAirline bo = new BOAirline(); bo.SetProperties(1, "A"); ApiAirlineResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLAirlineMapper(); BOAirline bo = new BOAirline(); bo.SetProperties(1, "A"); List <ApiAirlineResponseModel> response = mapper.MapBOToModel(new List <BOAirline>() { { bo } }); response.Count.Should().Be(1); }