mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 15:46:29 +01:00
29 lines
821 B
C#
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));
|
|
}
|
|
}
|
|
}
|