public void GivenTheLearnerChangesProvider(string providerId, Table table) { if (!TestSession.AtLeastOneScenarioCompleted) { TestSession.RegenerateUkprn(); AddNewIlr(table, TestSession.Ukprn); } }
public async Task Setup() { TestSession.RegenerateUkprn(); dataContext = Scope.Resolve <PeriodEndDataContext>(); var record = await dataContext.ProvidersRequiringReprocessing .FirstOrDefaultAsync(x => x.Ukprn == TestSession.Ukprn); if (record != null) { dataContext.ProvidersRequiringReprocessing.Remove(record); await dataContext.SaveChangesAsync(); } }
public void Setup() { TestSession.RegenerateUkprn(); Functions = new FunctionWrapper(Client); Console.WriteLine($"Generated new UKPRN: {TestSession.Ukprn}"); }