Exemple #1
0
        public void CompanyAndApplicationAreNullBeforeConnect()
        {
            var connection = new StandardConnection();

            Assert.IsNull(connection.Application);
            Assert.IsNull(connection.Company);
        }
Exemple #2
0
        public void ConnectAllowsAccessToCompanyAndApplication()
        {
            var connection = new StandardConnection();

            connection.Connect();

            Assert.IsNotNull(connection.Application);
            Assert.IsNotNull(connection.Company);
        }
Exemple #3
0
        public void DisconnectDisconnectsCompanyAndApplication()
        {
            var connection = new StandardConnection();

            connection.Connect();

            connection.Disconnect();

            Assert.IsNull(connection.Application);
            Assert.IsNull(connection.Company);
        }