Exemplo n.º 1
0
        public void TestThatCreateDataQueryerThrowsArgumentNullExceptionIfDataManipulatorsIsNull()
        {
            var oracleClientFactory = new OracleClientFactory();

            Assert.That(oracleClientFactory, Is.Not.Null);

            Assert.Throws <ArgumentNullException>(() => oracleClientFactory.CreateDataQueryer(null));
        }
Exemplo n.º 2
0
        public void TestThatCreateDataQueryerCreatesDataQueryerForOracle()
        {
            var oracleClientFactory = new OracleClientFactory();

            Assert.That(oracleClientFactory, Is.Not.Null);

            using (var dataQueryer = oracleClientFactory.CreateDataQueryer(MockRepository.GenerateMock <IDataManipulators>()))
            {
                Assert.That(dataQueryer, Is.Not.Null);

                dataQueryer.Dispose();
            }
        }