sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Services/TestLocksServicesContainerMutable.cs

27 lines
620 B
C#
Raw Normal View History

2022-08-30 15:42:25 +02:00
using System.Collections.Generic;
2021-07-12 21:31:46 +02:00
using System.Linq;
2022-08-30 15:42:25 +02:00
using NUnit.Framework;
2021-07-12 21:31:46 +02:00
using TINK.Model.Device;
using TINK.Services.BluetoothLock;
namespace TestTINKLib.Fixtures.ObjectTests.Services
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestLocksServicesContainerMutable
{
[Test]
public void TestCtorCustomServices()
{
var ciper = NSubstitute.Substitute.For<ICipher>();
var firstService = NSubstitute.Substitute.For<ILocksService>();
2021-07-12 21:31:46 +02:00
2022-09-06 16:08:19 +02:00
Assert.That(
new LocksServicesContainerMutable(
firstService.GetType().FullName,
new HashSet<ILocksService>() { firstService }
).Count,
Is.EqualTo(1));
}
}
2021-07-12 21:31:46 +02:00
}