Exemplo n.º 1
0
        public VBRequestDocumentWithPODto GetTestData_VBRequestDocumentWithPO()
        {
            var form = GetNewData_VBRequestDocumentWithPOFormDto();
            int id   = _service.CreateWithPO(form);
            var data = _service.GetWithPOById(id);

            return(data);
        }
        public void CreateWithPO_Return_Success()
        {
            //Setup
            FinanceDbContext dbContext = _dbContext(GetCurrentAsyncMethod());

            VBRequestDocumentService       service = new VBRequestDocumentService(dbContext, GetServiceProvider().Object);
            VBRequestDocumentWithPOFormDto form    = GetdataUtil(service).GetNewData_VBRequestDocumentWithPOFormDto();
            VBRequestDocumentWithPODto     data    = GetdataUtil(service).GetTestData_VBRequestDocumentWithPO();

            //Act
            int result = service.CreateWithPO(form);

            //Assert
            Assert.NotEqual(0, result);
        }