Beispiel #1
0
        private static TenantSettings GetTenantSettings(
            IRepositoryScope scope)
        {
            var tenantSettingsRepository = scope.CreateRepository <ITenantSettingsRepository>();

            return(tenantSettingsRepository.Get());
        }
Beispiel #2
0
        public SmoothSession(
            IRepositoryScope repositoryScope,
            string salesAreaName)
        {
            RepositoryScope = repositoryScope;

            EffectiveClashExposureCountService = CreateEffectiveClashExposureCountService(repositoryScope);

            var salesAreaRepository = repositoryScope.CreateRepository <ISalesAreaRepository>();

            SalesArea = salesAreaRepository.FindByName(salesAreaName);

            if (SalesArea is null)
            {
                throw new NullReferenceException(
                          $"Sales area {salesAreaName} was not found in the test data."
                          );
            }
        }