using NSubstitute; using NUnit.Framework; using ShareeBike.Model.Bikes.BikeInfoNS.BluetoothLock; using ShareeBike.Model.Connector; using ShareeBike.Model.Device; using ShareeBike.Model.User; using ShareeBike.Services.BluetoothLock; using ShareeBike.Services.Geolocation; using ShareeBike.View; using ShareeBike.ViewModel; using ShareeBike.ViewModel.Bikes; using ShareeBike.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler; namespace SharedBusinessLogic.Tests.Fixtures.ObjectTests.ViewModel.Bikes.Bike.BluetoothLock.RequestHandler { [TestFixture] public class TestReservedOpen { /// /// Test construction of object. /// [Test] public void Testctor() { var handler = new ReservedOpen( Substitute.For(), () => true, // isConnectedDelegate (isConnected) => Substitute.For(), Substitute.For(), Substitute.For(), () => Substitute.For(), Substitute.For(), Substitute.For(), Substitute.For(), Substitute.For()); // Verify prerequisites. Assert.That(handler.ButtonText, Is.EqualTo("Close lock")); Assert.That(handler.IsButtonVisible, Is.True); Assert.That(handler.LockitButtonText, Is.EqualTo("Start rental")); Assert.That(handler.IsLockitButtonVisible, Is.True); } } }