Esempio n. 1
0
        public void ReadRelizationToVerification_Return_Success()
        {
            FinanceDbContext dbContext = _dbContext(GetCurrentMethod());

            VBRealizationDocumentExpeditionService service = new VBRealizationDocumentExpeditionService(dbContext, GetServiceProvider().Object);

            ReadResponse <VBRealizationDocumentModel> result = service.ReadRealizationToVerification(0, 0, null, null, 0);

            Assert.NotNull(result);
        }
Esempio n. 2
0
        public void ReadRelizationToVerification_with_dataTest_Return_Success()
        {
            FinanceDbContext dbContext = _dbContext(GetCurrentMethod());

            VBRealizationDocumentExpeditionService service = new VBRealizationDocumentExpeditionService(dbContext, GetServiceProvider().Object);
            VBRealizationDocumentExpeditionModel   model   = _dataUtil(service, dbContext).GetTestData_VBRealizationDocumentExpedition();
            var result = service.ReadRealizationToVerification(model.VBId, model.VBRealizationId, model.VBRealizationDate, model.VBRequestName, model.UnitId);

            Assert.NotNull(result);
            //Assert.True(0 < result.Data.Count());
        }