public async Task BleManager_GetDeviceCharacteristics_Found()
        {
            var deviceId = "device-Id";
            var gsUuid   = Guid.Parse("4C088D33-76C6-4094-8C4A-65A80430678A");
            var gs       = new BleGattService {
                DeviceId = deviceId, Uuid = gsUuid
            };

            gs.Characteristics = new BleGattCharacteristic[] { };

            var bleAdapter = new DummyBleAdapter();

            var device = new BleDevice
            {
                Id   = deviceId,
                Name = "some-device-name"
            };

            var bm = new BleManager(new[] { bleAdapter }, null, null);

            bleAdapter.SetGetGattServices(device, new[] { gs });

            var res = await bm.GetDeviceCharacteristics(deviceId, gsUuid.ToString());

            res.ShouldBe(gs.Characteristics);
        }
        public void BleManager_GetDeviceCharacteristics_NotFound()
        {
            var deviceId = "device-Id";
            var gsUuid   = Guid.Parse("4C088D33-76C6-4094-8C4A-65A80430678A");
            var gs       = new BleGattService {
                DeviceId = deviceId, Uuid = gsUuid
            };

            gs.Characteristics = new BleGattCharacteristic[] { };

            var bleAdapter = new DummyBleAdapter();
            var device     = new BleDevice
            {
                Id   = deviceId,
                Name = "some-device-name"
            };

            var bm = new BleManager(new[] { bleAdapter }, null, null);

            bleAdapter.SetGetGattServices(device, new[] { gs });

            var task = bm.GetDeviceCharacteristics(deviceId, "not-exists-gatt-service-id");

            task.Exception.InnerExceptions.First().ShouldBeOfType <NullReferenceException>();
        }