Esempio n. 1
0
        public void GetSettings_CreateNewAndCheckSettings()
        {
            //Arrange
            string jsonPath = Environment.CurrentDirectory + "\\TestFiles\\AppSettings.json";

            //Act
            var settingsProvider = new JsonSettingsProvider(jsonPath);
            var settings         = settingsProvider.GetSettings();

            //Assert
            Assert.AreEqual("*****@*****.**", settings.To);
        }
 private void LoadSettings()
 {
     Settings = _settingsProvider.GetSettings <T>();
 }