public void GetHostConnection_BadPort(string port)
        {
            const string host = "localhost";

            var hostConnectionResult = DatabaseConnectionFactory.GetHostConnection(host, port);

            Assert.True(hostConnectionResult.HasErrors);
            Assert.True(hostConnectionResult.Errors.First().ErrorResultType == ErrorResultType.DatabaseIncorrectConnection);
        }
        public void GetHostConnection_Ok()
        {
            const string host = "localhost";
            const string port = "5032";

            var hostConnectionResult = DatabaseConnectionFactory.GetHostConnection(host, port);

            var hostConnectionAssert = new HostConnection(host, Int32.Parse(port));

            Assert.True(hostConnectionResult.OkStatus);
            Assert.True(hostConnectionAssert.Equals(hostConnectionResult.Value));
        }