public void MapBOToModel() { var mapper = new BOLPostTypesMapper(); BOPostTypes bo = new BOPostTypes(); bo.SetProperties(1, "A"); ApiPostTypesResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPostTypesMapper(); BOPostTypes bo = new BOPostTypes(); bo.SetProperties(1, "A"); List <ApiPostTypesResponseModel> response = mapper.MapBOToModel(new List <BOPostTypes>() { { bo } }); response.Count.Should().Be(1); }