public void gets_and_sets_an_object_by_explicit_key()
 {
     var target = new SimpleSessionTarget { Name = "Test" };
     var key = "the key";
     theSessionState.Set(key, target);
     theSessionState.Get<SimpleSessionTarget>(key).ShouldBe(target);
 }
Beispiel #2
0
        public void gets_and_sets_an_object_by_type_name()
        {
            var target = new SimpleSessionTarget {
                Name = "Test"
            };

            theSessionState.Set(target);
            theSessionState.Get <SimpleSessionTarget>().ShouldBe(target);
        }
Beispiel #3
0
        public void gets_and_sets_an_object_by_explicit_key()
        {
            var target = new SimpleSessionTarget {
                Name = "Test"
            };
            var key = "the key";

            theSessionState.Set(key, target);
            theSessionState.Get <SimpleSessionTarget>(key).ShouldBe(target);
        }
 protected bool Equals(SimpleSessionTarget other)
 {
     return string.Equals(Name, other.Name);
 }
 public void gets_and_sets_an_object_by_type_name()
 {
     var target = new SimpleSessionTarget {Name = "Test"};
     theSessionState.Set(target);
     theSessionState.Get<SimpleSessionTarget>().ShouldBe(target);
 }
Beispiel #6
0
 protected bool Equals(SimpleSessionTarget other)
 {
     return(string.Equals(Name, other.Name));
 }