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

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

            var result = service.Read(1, 1, "{}", "", 0, 0, 0, null, null, 0);

            Assert.NotNull(result);
        }
Esempio n. 2
0
        public void Read_with_Data_Return_Success()
        {
            //Setup
            FinanceDbContext dbContext = _dbContext(GetCurrentMethod());
            VBRealizationDocumentExpeditionService service = new VBRealizationDocumentExpeditionService(dbContext, GetServiceProvider().Object);
            var data = _dataUtil(service, dbContext).GetTestData_VBRealizationDocumentExpedition();

            //Act
            var result = service.Read(1, 1, "{}", "", data.Position, data.VBId, data.VBRealizationId, data.VBRealizationDate, data.VBRequestName, data.UnitId);

            //Assert
            Assert.NotNull(result);
        }