public async Task FromTheCheckYourAnswersPage_ThenTheGetNonDfeOrganisationRequestIsNeverCalled() { SessionService.Get(Arg.Any <string>()).Returns("Test School"); SessionService.Get <List <ReferenceDataSearchResult> >(Arg.Any <string>()).Returns(GetCachedSearchResults()); (await Handler.Handle(new GetNonDfeOrganisationsRequest("Test School", Guid.NewGuid()), default(CancellationToken))).ToList(); ReferenceDataApi.DidNotReceive().Search(Arg.Is("Test School")); }
public void Init() { instance = new ReferenceDataApi(); }
public ReferenceDataApiTests() { instance = new ReferenceDataApi(); }