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