public ScholarshipController(ScholarshipContext context, IOptionsSnapshot<ScholarshipSettings> settings, IIdentityService identityService, IScholarshipIntegrationEventService scholarshipIntegrationEventService)
        {
            _scholarshipContext = context ?? throw new ArgumentNullException(nameof(context));
            _scholarshipIntegrationEventService = scholarshipIntegrationEventService ?? throw new ArgumentNullException(nameof(scholarshipIntegrationEventService));
            _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
            _settings = settings.Value;

            context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }
 public ScholarshipService(ScholarshipContext dbContext, IOptions <ScholarshipSettings> settings, ILogger <ScholarshipService> logger)
 {
     _settings           = settings.Value;
     _scholarshipContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _logger             = logger;
 }