/// <summary> /// Initializes a new instance of the <see cref="CostAggregationService"/> class. /// </summary> /// <param name="settings"><see cref="ICostMonitoringSettings"/> instance.</param> /// <param name="dbContext"><see cref="IMonitoringDbContext"/> instance.</param> /// <param name="auth"><see cref="IAzureAuthenticationHelperWrapper"/> instance.</param> /// <param name="billing"><see cref="IAzureBillingApiClientHelper"/> instance.</param> /// <param name="httpClient"><see cref="IHttpClientHelper"/> instance.</param> public CostAggregationService(ICostMonitoringSettings settings, IMonitoringDbContext dbContext, IAzureAuthenticationHelperWrapper auth, IAzureBillingApiClientHelper billing, IHttpClientHelper httpClient) { this._settings = settings.ThrowIfNullOrEmpty(); this._dbContext = dbContext.ThrowIfNullOrEmpty(); this._auth = auth.ThrowIfNullOrEmpty(); this._billing = billing.ThrowIfNullOrEmpty(); this._httpClient = httpClient.ThrowIfNullOrEmpty(); }
/// <summary> /// Initializes a new instance of the <see cref="CostReminderService"/> class. /// </summary> /// <param name="settings"><see cref="ICostMonitoringSettings"/> instance.</param> /// <param name="dbContext"><see cref="IMonitoringDbContext"/> instance.</param> public CostReminderService(ICostMonitoringSettings settings, IMonitoringDbContext dbContext) { this._settings = settings.ThrowIfNullOrEmpty(); this._dbContext = dbContext.ThrowIfNullOrEmpty(); }