public async void Should_Success_Update_Data()
        {
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(_dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var modelItem = _dataUtil(facade, GetCurrentMethod()).GetNewData().Items.First();

            //model.Items.Clear();
            model.Items.Add(modelItem);
            var ResponseAdd = await facade.Update((int)model.Id, model, USERNAME);

            Assert.NotEqual(ResponseAdd, 0);
        }
Example #2
0
        public async Task Should_Success_Update_Data()
        {
            UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(GetServiceProvider(GetCurrentMethod()).Object, _dbContext(GetCurrentMethod()));
            var model = await _dataUtil(facade, GetCurrentMethod()).GetTestData();

            var datautil = await _dataUtil(facade, GetCurrentMethod()).GetNewData();

            var modelItem = datautil.Items.First();

            //model.Items.Clear();
            model.Items.Add(modelItem);
            var ResponseAdd = await facade.Update((int)model.Id, model, USERNAME);

            Assert.NotEqual(0, ResponseAdd);
        }