Esempio n. 1
0
        public async void Should_Success_GetUnitReceiptNote()
        {
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(_dbContext(GetCurrentMethod()));
            var model    = _dataUtil(facade, GetCurrentMethod()).GetNewData();
            var Response = await facade.Create(model, USERNAME, true);

            Assert.NotEqual(Response, 0);

            foreach (var item in model.Items)
            {
                var unitReceiptNote = facade.GetUnitReceiptNote(item.URNId);
                Assert.NotNull(unitReceiptNote);
            }
        }