public void ItReturnsDeviceModelMessageSchemaFromDeviceModelTelemetryMessageSchema()
        {
            // Arrange
            var schema = this.GetDeviceModelTelemetryMessageSchema();

            // Act
            var result = DeviceModelTelemetryMessageSchema.ToServiceModel(schema);

            // Assert
            Assert.IsType <DeviceModel.DeviceModelMessageSchema>(result);
        }
        private DeviceModelTelemetryMessageSchema GetDeviceModelTelemetryMessageSchema()
        {
            var schema = new DeviceModelTelemetryMessageSchema()
            {
                Name   = "chiller-sensors",
                Format = "JSON",
                Fields = new Dictionary <string, string>()
                {
                    { "cargotemperature", "double" }
                }
            };

            return(schema);
        }