Beispiel #1
0
        public async Task <VBRequestDocumentNonPODto> GetTestData_VBRequestDocumentNonPO()
        {
            var testData = GetNewData_VBRequestDocumentNonPOFormDto();
            int id       = await _service.CreateNonPO(testData);

            var data = await _service.GetNonPOById(id);

            return(data);
        }
        public async Task GetNonPOById_Return_Null()
        {
            //Setup
            FinanceDbContext dbContext = _dbContext(GetCurrentAsyncMethod());

            VBRequestDocumentService  service = new VBRequestDocumentService(dbContext, GetServiceProvider().Object);
            VBRequestDocumentNonPODto data    = await GetdataUtil(service).GetTestData_VBRequestDocumentNonPO();

            //Act
            var result = await service.GetNonPOById(data.Id + 1);

            //Assert
            Assert.Null(result);
        }