public void ReceiverReady_AnyCallIds_True()
        {
            var settingMock = new Mock<ISettings>();
            var componentMock = new Mock<IComponents>();
            var uowMock = new Mock<IUnitOfWork>();
            var repositoryMock = new Mock<IRepository>();
            var serviceLocatorMock = new Mock<IServiceLocator>();

            serviceLocatorMock.Setup(r => r.GetInstance<IRepository>())
                .Returns(repositoryMock.Object);
            ServiceLocator.SetLocatorProvider(() => serviceLocatorMock.Object);

            // Arrange
            Guid id = Guid.NewGuid();
            Call call = new Call
            {
                Id = id,
                ReceiverReady = true
            };
            repositoryMock.Setup(r => r.FindById<Call>(id)).Returns(call);
            bool expectedResult = true;

            // Act
            CallService callService = new CallService(uowMock.Object, repositoryMock.Object,
                settingMock.Object, componentMock.Object);
            bool currentResult = callService.ReceiverReady(id);

            // Assert
            repositoryMock.Verify(r => r.FindById<Call>(id));
            Assert.AreEqual(expectedResult, currentResult);
        }
        public void ReceiverReady_AnyCallIds_Null()
        {
            var settingMock = new Mock<ISettings>();
            var componentMock = new Mock<IComponents>();
            var uowMock = new Mock<IUnitOfWork>();
            var repositoryMock = new Mock<IRepository>();
            var serviceLocatorMock = new Mock<IServiceLocator>();

            ServiceLocator.SetLocatorProvider(() => serviceLocatorMock.Object);

            // Arrange
            Guid id = Guid.NewGuid();
            Call call = new Call
            {
                Id = id,
                ReceiverReady = true
            };

            // Act
            CallService callService = new CallService(uowMock.Object, repositoryMock.Object,
                settingMock.Object, componentMock.Object);
            bool currentResult = callService.ReceiverReady(id);
        }