public void MapModelToBO() { var mapper = new BOLTransactionStatuMapper(); ApiTransactionStatuRequestModel model = new ApiTransactionStatuRequestModel(); model.SetProperties("A"); BOTransactionStatu response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLTransactionStatuMapper(); BOTransactionStatu bo = new BOTransactionStatu(); bo.SetProperties(1, "A"); ApiTransactionStatuResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALTransactionStatuMapper(); TransactionStatu entity = new TransactionStatu(); entity.SetProperties(1, "A"); BOTransactionStatu response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTransactionStatuMapper(); var bo = new BOTransactionStatu(); bo.SetProperties(1, "A"); TransactionStatu response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLTransactionStatuMapper(); BOTransactionStatu bo = new BOTransactionStatu(); bo.SetProperties(1, "A"); List <ApiTransactionStatuResponseModel> response = mapper.MapBOToModel(new List <BOTransactionStatu>() { { bo } }); response.Count.Should().Be(1); }