Provides a default SettingsDictionary based on application settings from the global ConfigurationManager.
        public void GetSettings_ReturnsSameInstance()
        {
            // Arrange
            DefaultSettingsProvider settingsProvider = new DefaultSettingsProvider();

            // Act
            SettingsDictionary settings1 = settingsProvider.GetSettings();
            SettingsDictionary settings2 = settingsProvider.GetSettings();

            // Assert
            Assert.Same(settings1, settings2);
        }
Ejemplo n.º 2
0
        public void GetSettings_ReturnsSameInstance()
        {
            // Arrange
            DefaultSettingsProvider settingsProvider = new DefaultSettingsProvider();

            // Act
            SettingsDictionary settings1 = settingsProvider.GetSettings();
            SettingsDictionary settings2 = settingsProvider.GetSettings();

            // Assert
            Assert.Same(settings1, settings2);
        }