Пример #1
0
        public async Task When_Device_With_0_As_Fcnt_Is_Loaded_Reset_Should_Not_Save_Reported_Properties()
        {
            var target = new SingleGatewayFrameCounterUpdateStrategy();

            await target.ResetAsync(this.device, 1, string.Empty);

            Assert.False(this.device.HasFrameCountChanges);
            this.deviceClient.VerifyAll();
        }
Пример #2
0
        public async Task When_Device_With_0_As_Fcnt_Is_Loaded_Reset_Should_Not_Save_Reported_Properties()
        {
            var target = new SingleGatewayFrameCounterUpdateStrategy();

            var device = new LoRaDevice("1", "2", new SingleDeviceConnectionManager(this.deviceClient.Object));
            await target.ResetAsync(device);

            Assert.False(device.HasFrameCountChanges);
            this.deviceClient.VerifyAll();
        }