sharee.bike-App/SharedBusinessLogic.Tests/Services/BluetoothLock/TestLocksServicesContainerMutable.cs
2024-04-09 12:53:23 +02:00

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