sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Services/TestLocksServicesContainerMutable.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

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));
}
}
}