sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Services/TestLocksServicesContainerMutable.cs

30 lines
821 B
C#
Raw Permalink Normal View History

2021-07-12 21:31:46 +02:00
using NSubstitute;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using TINK.Model.Device;
using TINK.Services.BluetoothLock;
using TINK.Services.BluetoothLock.BLE;
namespace TestTINKLib.Fixtures.ObjectTests.Services
{
[TestFixture]
public class TestLocksServicesContainerMutable
{
[Test]
public void TestCtorCustomServices()
{
var ciper = NSubstitute.Substitute.For<ICipher>();
var firstService = NSubstitute.Substitute.For<ILocksService>();
Assert.That(
new LocksServicesContainerMutable(
firstService.GetType().FullName,
new HashSet<ILocksService>() { firstService }
).Count,
Is.EqualTo(1));
}
}
}