public void MapModelToBO() { var mapper = new BOLPaymentTypeMapper(); ApiPaymentTypeRequestModel model = new ApiPaymentTypeRequestModel(); model.SetProperties("A"); BOPaymentType response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLPaymentTypeMapper(); BOPaymentType bo = new BOPaymentType(); bo.SetProperties(1, "A"); ApiPaymentTypeResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPaymentTypeMapper(); BOPaymentType bo = new BOPaymentType(); bo.SetProperties(1, "A"); List <ApiPaymentTypeResponseModel> response = mapper.MapBOToModel(new List <BOPaymentType>() { { bo } }); response.Count.Should().Be(1); }