Exemplo n.º 1
0
        static TestEnvironment()
        {
            RunId = IdentifierGenerator.GenerateIdentifier();
            //ValidateSpecsOnly = true;

            Variables = new EnvironmentVariables
            {
                TransientConnectionString    = ConfigurationManager.AppSettings["TransientConnectionString"],
                DedsDatabaseConnectionString = ConfigurationManager.AppSettings["DedsConnectionString"],
                WorkingDirectory             = ConfigurationManager.AppSettings["WorkingDir"],
                IlrFileDirectory             = System.IO.Path.Combine(ConfigurationManager.AppSettings["WorkingDir"], "Collect"),
                CurrentYear     = DateTime.Today.GetAcademicYear(),
                OpaRulebaseYear = ConfigurationManager.AppSettings["OpaRulebaseYear"],
                LogLevel        = "Trace",

                IlrAimRefLookups = new[]
                {
                    new IlrAimRefLookup {
                        ProgrammeType = 2, FrameworkCode = 403, PathwayCode = 1, ComponentLearnAimRef = "60005105", MathsAndEnglishLearnAimRef = "50086832"
                    }
                },

                AccountsApiBaseUrl       = "",
                AccountsApiClientSecret  = "",
                AccountsApiClientToken   = "",
                AccountsApiIdentifierUri = "",
                AccountsApiTenant        = ""
            };

            Logger = new AcceptanceTestsLogger(RunId, Variables.DedsDatabaseConnectionString);

            ProcessService = new ProcessService(Logger);
        }
Exemplo n.º 2
0
        static TestEnvironment()
        {
            RunId = IdentifierGenerator.GenerateIdentifier();

            Variables = new EnvironmentVariables
            {
                TransientConnectionString    = ConfigurationManager.AppSettings["TransientConnectionString"],
                DedsDatabaseConnectionString = ConfigurationManager.AppSettings["DedsConnectionString"],
                WorkingDirectory             = ConfigurationManager.AppSettings["WorkingDir"],
                CurrentYear = DateTime.Today.GetAcademicYear(),
                LogLevel    = "Trace",

                AccountsApiBaseUrl       = "",
                AccountsApiClientSecret  = "",
                AccountsApiClientToken   = "",
                AccountsApiIdentifierUri = "",
                AccountsApiTenant        = ""
            };

            Logger = new AcceptanceTestsLogger(RunId, Variables.DedsDatabaseConnectionString);

            ProcessService = new ProcessService(Logger);
        }