コード例 #1
0
        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
            };
        }
コード例 #2
0
 public async override Task When()
 {
     _result = await _apiClient.GetLoggedInUserTypeInfoAsync(_ukprn);
 }