Example #1
0
 public UserTenantContainerTest()
 {
     this.logger = new Mock <ILogger <UserTenantContainer> >();
     this.mockTableStorageClient = new Mock <ITableStorageClient> {
         DefaultValue = DefaultValue.Mock
     };
     this.userTenantContainer = new UserTenantContainer(this.mockTableStorageClient.Object, this.logger.Object);
 }
Example #2
0
 public UserTenantController(UserTenantContainer container, IJwtHelpers jwtHelper, ISendGridClientFactory sendGridClientFactory, IInviteHelpers inviteHelper, UserSettingsContainer settingsContainer)
 {
     this.container             = container;
     this.jwtHelper             = jwtHelper;
     this.sendGridClientFactory = sendGridClientFactory;
     this.inviteHelper          = inviteHelper;
     this.settingsContainer     = settingsContainer;
 }
Example #3
0
 public AuthorizeController(AppConfig config, UserTenantContainer userTenantContainer, UserSettingsContainer userSettingsContainer, IJwtHelpers jwtHelper, IOpenIdProviderConfiguration openIdProviderConfiguration, IAuthenticationContext authenticationContext)
 {
     this.config = config;
     this.userTenantContainer         = userTenantContainer;
     this.userSettingsContainer       = userSettingsContainer;
     this.jwtHelper                   = jwtHelper;
     this.openIdProviderConfiguration = openIdProviderConfiguration;
     this.authenticationContext       = authenticationContext;
 }
Example #4
0
 public JwtHelpers(
     UserTenantContainer userTenantContainer,
     UserSettingsContainer userSettingsContainer,
     AppConfig config,
     IHttpContextAccessor httpContextAccessor,
     IOpenIdProviderConfiguration openIdProviderConfiguration,
     IRsaHelpers rsaHelpers,
     ILogger <JwtHelpers> logger)
 {
     this.userTenantContainer   = userTenantContainer;
     this.userSettingsContainer = userSettingsContainer;
     this.config = config;
     this.httpContextAccessor         = httpContextAccessor;
     this.openIdProviderConfiguration = openIdProviderConfiguration;
     this.rsaHelpers = rsaHelpers;
     this.logger     = logger;
 }
Example #5
0
 public UserTenantContainerTest()
 {
     this.logger = new Mock <ILogger <UserTenantContainer> >();
     this.mockTableStorageClient = new Mock <ITableStorageClient> {
         DefaultValue = DefaultValue.Mock
     };
     this.mockGrafanaClient   = new Mock <IGrafanaClient>();
     this.mockKeyVaultClient  = new Mock <IKeyVaultClient>();
     this.userTenantContainer = new UserTenantContainer(
         this.mockTableStorageClient.Object,
         this.logger.Object,
         new AppConfig()
     {
         DeviceTelemetryService = new DeviceTelemetryServiceConfig
         {
             Messages = new MessagesConfig
             {
                 TelemetryStorageType = "cosmosdb",
             },
         },
     },
         this.mockGrafanaClient.Object,
         this.mockKeyVaultClient.Object);
 }
 public SystemAdminController(SystemAdminContainer container, UserTenantContainer userTenantcontainer)
 {
     this.container           = container;
     this.userTenantcontainer = userTenantcontainer;
 }
Example #7
0
 public UserTenantController(UserTenantContainer container, IJwtHelpers jwtHelper, ISendGridClientFactory sendGridClientFactory)
 {
     this.container             = container;
     this.jwtHelper             = jwtHelper;
     this.sendGridClientFactory = sendGridClientFactory;
 }