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 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); }