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); }
public void gets_and_sets_an_object_by_type_name() { var target = new SimpleSessionTarget { Name = "Test" }; theSessionState.Set(target); theSessionState.Get <SimpleSessionTarget>().ShouldBe(target); }
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); }
protected bool Equals(SimpleSessionTarget other) { return(string.Equals(Name, other.Name)); }