public ApplicationInfoProvider(
     IHttpContextAccessor httpContextAccessor,
     Assembly entryAssembly,
     string environment,
     ImplicitFlowAuthenticationSettings authenticationSettings)
 {
     _httpContextAccessor    = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _entryAssembly          = entryAssembly ?? throw new ArgumentNullException(nameof(entryAssembly));
     _environment            = environment ?? throw new ArgumentNullException(nameof(environment));
     _authenticationSettings = authenticationSettings ?? throw new ArgumentNullException(nameof(authenticationSettings));
 }
 public ApplicationInfoProviderTests()
 {
     _entryAssembly          = typeof(Program).Assembly;
     _environment            = "UnitTests";
     _authenticationSettings = new ImplicitFlowAuthenticationSettings {
         Authority = new Uri("https://ringor.eu/auth"),
         Tenant    = "M2019Tests",
         ClientId  = "theClientId",
         Scopes    = new[] {
             "scope1",
             "scope2"
         }
     };
     FakeFactory.Create(out _httpContextAccessor);
     _sut = new ApplicationInfoProvider(_httpContextAccessor, _entryAssembly, _environment, _authenticationSettings);
 }