2022-08-30 15:42:25 +02:00
|
|
|
|
using System.Collections.Generic;
|
2021-07-12 21:31:46 +02:00
|
|
|
|
using System.Linq;
|
2022-08-30 15:42:25 +02:00
|
|
|
|
using NUnit.Framework;
|
2021-07-12 21:31:46 +02:00
|
|
|
|
using TINK.Model.Device;
|
|
|
|
|
using TINK.Services.BluetoothLock;
|
|
|
|
|
|
|
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|