Encapsulates information about a user session.
Inheritance: IJsonSerializable
 public void IsFirstCanBeSetToNullToRemoveItFromJsonPayload()
 {
     var session = new SessionContext(new Dictionary<string, string>()) { IsFirst = true };
     session.IsFirst = null;
     Assert.Null(session.IsFirst);
 }
 public void IsFirstIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var session = new SessionContext(new Dictionary<string, string>());
     Assert.Null(session.IsFirst);
 }
 public void IsFirstCanBeSetByUserToSupplyCustomValue()
 {
     var session = new SessionContext(new Dictionary<string, string>());
     session.IsFirst = true;
     Assert.Equal(true, session.IsFirst);
 }
 public void IdCanBeChangedByUserToSupplyApplicationDefinedValue()
 {
     var session = new SessionContext(new Dictionary<string, string>());
     session.Id = "42";
     Assert.Equal("42", session.Id);
 }