sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Services/TestLocksServicesContainerMutable.cs
2021-07-12 21:31:46 +02:00

29 lines
821 B
C#

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));
}
}
}