Encapsulates information about a device where an application is running.
Inheritance: IJsonSerializable
 public void NetworkTypeCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.NetworkType = "42";
     Assert.Equal("42", context.NetworkType);
 }
 public void DeviceModelCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.Model = "test value";
     Assert.Equal("test value", context.Model);
 }
 public void NetworkTypeIsNullByDefaultToPreventUnnecessaryTransmissionOfDefaultValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.NetworkType);
 }
 public void OperatingSystemCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.DeviceOSVersion = "test value";
     Assert.Equal("test value", context.DeviceOSVersion);
 }
 public void DeviceModelIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.Model);
 }
 public void OperatingSystemIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.DeviceOSVersion);
 }
        public void RoleInstanceCanBeChangedByUserSpecifyACustomValue()
        {
            var context = new DeviceContext(new Dictionary<string, string>());
            context.RoleInstance = "Testing role name";

            Assert.Equal("Testing role name", context.RoleInstance);
        }
 public void RoleInstanceIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.RoleInstance);
 }
 public void ScreenResolutionCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     context.ScreenResolution = "test value";
     Assert.Equal("test value", context.ScreenResolution);
 }
 public void ScreenResolutionIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new DeviceContext(new Dictionary<string, string>());
     Assert.Null(context.ScreenResolution);
 }