示例#1
0
        public void GetSystemConfig_CreateConfigRepositoryWithCustomValuesAndLoadSystemConfig_ReturnsConfigWithCorrectSystemConfigKey()
        {
            var     configLoader     = new FakeLoader();
            var     configRepository = new ConfigRepository(configLoader, "CustomSystemKey", "CustomAppKey");
            IConfig config           = configRepository.GetSystemConfig();

            Assert.AreEqual("CustomSystemKey", config.ConfigKey);
        }
示例#2
0
        public void GetSystemConfig_CreateConfigRepositoryWithDefaultValuesAndLoadSystemConfig_ReturnsConfigWithCorrectSystemConfigKey()
        {
            var     configLoader     = new FakeLoader();
            var     configRepository = new ConfigRepository(configLoader);
            IConfig config           = configRepository.GetSystemConfig();

            Assert.AreEqual("System", config.ConfigKey);
        }
		public void GetSystemConfig_CreateConfigRepositoryWithCustomValuesAndLoadSystemConfig_ReturnsConfigWithCorrectSystemConfigKey() {
			var configLoader = new FakeLoader();
			var configRepository = new ConfigRepository(configLoader, "CustomSystemKey", "CustomAppKey");
			IConfig config = configRepository.GetSystemConfig();
			Assert.AreEqual("CustomSystemKey", config.ConfigKey);
		}
		public void GetSystemConfig_CreateConfigRepositoryWithDefaultValuesAndLoadSystemConfig_ReturnsConfigWithCorrectSystemConfigKey() {
			var configLoader = new FakeLoader();
			var configRepository = new ConfigRepository(configLoader);
			IConfig config = configRepository.GetSystemConfig();
			Assert.AreEqual("System", config.ConfigKey);
		}