public override void Setup() { _ukprn = 987654321; _tokenServiceClient = Substitute.For <ITokenServiceClient>(); _configuration = new ResultsAndCertificationConfiguration { ResultsAndCertificationInternalApiSettings = new ResultsAndCertificationInternalApiSettings { Uri = "http://tlevel.api.com" } }; _mockHttpResult = new LoggedInUserTypeInfo { Ukprn = _ukprn, Name = "Test", UserType = LoginUserType.AwardingOrganisation }; }
public async override Task When() { _result = await _apiClient.GetLoggedInUserTypeInfoAsync(_ukprn); }