public void MapModelToBO() { var mapper = new BOLPostHistoryTypeMapper(); ApiPostHistoryTypeRequestModel model = new ApiPostHistoryTypeRequestModel(); model.SetProperties("A"); BOPostHistoryType response = mapper.MapModelToBO(1, model); response.Type.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLPostHistoryTypeMapper(); BOPostHistoryType bo = new BOPostHistoryType(); bo.SetProperties(1, "A"); ApiPostHistoryTypeResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPostHistoryTypeMapper(); BOPostHistoryType bo = new BOPostHistoryType(); bo.SetProperties(1, "A"); List <ApiPostHistoryTypeResponseModel> response = mapper.MapBOToModel(new List <BOPostHistoryType>() { { bo } }); response.Count.Should().Be(1); }