mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-15 06:36:38 +01:00
26 lines
620 B
C#
26 lines
620 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NUnit.Framework;
|
|
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));
|
|
}
|
|
}
|
|
}
|