mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
26 lines
646 B
C#
26 lines
646 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NUnit.Framework;
|
|
using ShareeBike.Model.Device;
|
|
using ShareeBike.Services.BluetoothLock;
|
|
|
|
namespace SharedBusinessLogic.Tests.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));
|
|
}
|
|
}
|
|
}
|