예제 #1
0
        public void SetUp()
        {
            this.fileName = Guid.NewGuid().ToString("N");
            var ssm = new SharedSettingsManager();

            this.settings1 = ssm.GetOrCreate(Guid.NewGuid().ToString("N"));
            this.settings2 = ssm.GetOrCreate(Guid.NewGuid().ToString("N"));
        }
 public void It_should_save_changes()
 {
     var ssm = new SharedSettingsManager();
     this.name = Guid.NewGuid().ToString("N");
     var settings = ssm.GetOrCreate(this.name);
     settings.ProxyHost = "foo";
     ssm.Save(settings);
     var settings2 = ssm.GetOrCreate(settings.Name);
     settings2.ProxyHost.Should().Be.EqualTo(settings.ProxyHost);
 }
예제 #3
0
        public void It_should_save_changes()
        {
            var ssm = new SharedSettingsManager();

            this.name = Guid.NewGuid().ToString("N");
            var settings = ssm.GetOrCreate(this.name);

            settings.ProxyHost = "foo";
            ssm.Save(settings);
            var settings2 = ssm.GetOrCreate(settings.Name);

            settings2.ProxyHost.Should().Be.EqualTo(settings.ProxyHost);
        }
 public void SetUp()
 {
     this.fileName = Guid.NewGuid().ToString("N");
     var ssm = new SharedSettingsManager();
     this.settings1 = ssm.GetOrCreate(Guid.NewGuid().ToString("N"));
     this.settings2 = ssm.GetOrCreate(Guid.NewGuid().ToString("N"));
 }