Beispiel #1
0
        public void MasterSetup()
        {
            var globalContext      = new GlobalContext();
            var environmentContext = new EnvironmentContext();
            var config             = new ConfigurationBuilder()
                                     .SetBasePath(Directory.GetCurrentDirectory() + "\\Framework\\Config")
                                     .AddJsonFile("appSettings.json", false, true)
                                     .Build();

            environmentContext.BaseAddress   = EnvironmentBuilder.GetConfigValue(config, "environment");
            environmentContext.Path          = EnvironmentBuilder.GetConfigValue(config, "path");
            globalContext.EnvironmentContext = environmentContext;
            GlobalContext = globalContext;
        }