public DevicePropertiesRequestTest(ITestOutputHelper log)
        {
            this.sdkClient = new Mock <IDeviceClientWrapper>();
            this.logger    = new Mock <ILogger>();

            this.target = new DeviceProperties(this.sdkClient.Object, this.logger.Object);
        }
Exemplo n.º 2
0
        public DevicePropertiesTest(ITestOutputHelper log)
        {
            this.sdkClient      = new Mock <IDeviceClientWrapper>();
            this.logger         = new Mock <ILogger>();
            this.servicesConfig = new Mock <IServicesConfig>();
            this.servicesConfig.SetupGet(x => x.DeviceTwinEnabled).Returns(true);

            this.target = new DeviceProperties(this.servicesConfig.Object, this.logger.Object);
        }
Exemplo n.º 3
0
        public DeviceClient(
            string deviceId,
            IoTHubProtocol protocol,
            IDeviceClientWrapper client,
            IDeviceMethods deviceMethods,
            ILogger logger)
        {
            this.deviceId      = deviceId;
            this.protocol      = protocol;
            this.client        = client;
            this.deviceMethods = deviceMethods;
            this.log           = logger;

            this.propertiesUpdateRequest = new DeviceProperties(client, this.log);
        }
        public DeviceClient(
            string deviceId,
            IoTHubProtocol protocol,
            IDeviceClientWrapper client,
            IDeviceMethods deviceMethods,
            IServicesConfig servicesConfig,
            ILogger logger)
        {
            this.deviceId          = deviceId;
            this.protocol          = protocol;
            this.client            = client;
            this.deviceMethods     = deviceMethods;
            this.log               = logger;
            this.deviceTwinEnabled = servicesConfig.DeviceTwinEnabled;

            this.propertiesUpdateRequest = new DeviceProperties(servicesConfig, logger);
        }