public async Task Should_Error_Get_Data_By_Id()
        {
            var facade = new GarmentUnitExpenditureNoteFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));
            var data   = await dataUtil(facade, GetCurrentMethod()).GetTestDataAcc();

            var Response = facade.GetROAsalById((int)data.Id);

            Assert.NotEqual(0, Response.DetailExpenditureId);
        }
Ejemplo n.º 2
0
        public async Task Should_Error_Get_Data_By_Id()
        {
            var dbString = GetCurrentMethod() + "Task Should_Error_Get_Data_By_Id";
            var facade   = new GarmentUnitExpenditureNoteFacade(GetServiceProvider(), _dbContext(dbString));
            var data     = await dataUtil(facade, dbString).GetTestDataAcc();

            //var Response = facade.GetROAsalById((int)data.Id);

            Assert.Throws <System.InvalidOperationException> (() => facade.GetROAsalById((int)data.Id));
            //   Assert.NotEqual(0, Response.DetailExpenditureId);
        }