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();
 }
示例#3
0
 public ReferenceDataApiTests()
 {
     instance = new ReferenceDataApi();
 }