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); }
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); }