public void Settings_can_be_written_to_disk_and_read_back()
        {
            var expectedSettings = new ServerSettings
                               {
                                   ServerIp = "192.168.1.2",
                                   Port = 123,
                                   TimeoutInSeconds = 456
                               };

            var service = new SettingsService();

            service.Save(expectedSettings);

            var actualSettings = service.Load();

            Assert.AreEqual(expectedSettings, actualSettings);
        }
 public void SetUp()
 {
     _service = new SettingsService();
 }
예제 #3
0
 public SettingsPresenter()
 {
     _settingsService = ObjectRegistry.Create<SettingsService>();
 }