public void Registration_ConnectionsNot_Test()
        {
            // Arrange
            var connectionRepositoryMock = new Mock <IConnectionRepository>();
            var mapperMock = new Mock <IMapper>();

            connectionRepositoryMock.Setup(repo => repo.Get()).Returns((List <Connection>)null);

            var connectionService = new ConnectionService(connectionRepositoryMock.Object, mapperMock.Object);

            // Act
            var result = connectionService.Get();

            // Assert
            Assert.Null(result);
        }
        public void RegistrationTest()
        {
            // Arrange
            var connectionRepositoryMock = new Mock <IConnectionRepository>();
            var mapperMock = new Mock <IMapper>();

            connectionRepositoryMock.Setup(repo => repo.Get()).Returns(Connections);

            var connectionService = new ConnectionService(connectionRepositoryMock.Object, mapperMock.Object);

            // Act
            var result = connectionService.Get();

            // Assert
            Assert.Equal(Connections, result);
        }