private As4SettingsServiceTests Setup() { Mapper.Initialize(cfg => cfg.AddProfile(new SettingsAutoMapper())); settingsSource = Substitute.For <ISettingsSource>(); settingsSource.Get().Returns(settingsList); settingsService = new As4SettingsService(new Mapper(Mapper.Configuration), settingsSource); return(this); }
public bool SettingExists(string name) { try { _configWriter.Get(name); return(true); } catch { return(false); } }
/// <summary> /// Get settings /// </summary> /// <returns>Setting</returns> public async Task <Model.Internal.Settings> GetSettings() { return(await settingsSource.Get()); }