Beispiel #1
0
        public async Task VerifiedToCashier_with_multipleData_Return_Success()
        {
            FinanceDbContext dbContext = _dbContext(GetCurrentMethod());

            VBRealizationDocumentExpeditionService service = new VBRealizationDocumentExpeditionService(dbContext, GetServiceProvider().Object);
            VBRealizationDocumentExpeditionModel   model   = _dataUtil(service, dbContext).GetTestData_VBRealizationDocumentExpedition();

            int result = await service.VerifiedToCashier(new List <int>() { model.VBRealizationId });

            Assert.NotEqual(0, result);
        }
Beispiel #2
0
        public async Task VerifiedToCashier_Return_Success()
        {
            FinanceDbContext        dbContext           = _dbContext(GetCurrentMethod());
            Mock <IServiceProvider> serviceProviderMock = GetServiceProvider();

            VBRealizationWithPOService vBRealizationWithPOService = new VBRealizationWithPOService(dbContext, serviceProviderMock.Object);
            var vBRealizationWithPODto = _dataUtil(vBRealizationWithPOService).GetTestData_TanpaNomorVB();

            VBRealizationDocumentExpeditionService service = new VBRealizationDocumentExpeditionService(dbContext, serviceProviderMock.Object);
            VBRealizationDocumentExpeditionModel   model   = _dataUtil(service, dbContext).GetTestDataVerifiedToCashier_VBRealizationDocumentExpedition();

            int result = await service.VerifiedToCashier(model.VBRealizationId);

            Assert.NotEqual(0, result);
        }