Exemple #1
0
        public void CreateInvokerForResultExistsCheckCommand_ExpectInstanceOfDoesResultExistsInvoker()
        {
            var commandStub = Substitute.For <IDoesResultExistCommand>();
            var invoker     = new DbInvokerFactory().Create(commandStub);

            Assert.IsInstanceOf <DoesResultExistCommandInvoker>(invoker);
        }
Exemple #2
0
        public void CreateInvokerForScalarCommand_ExpectInstanceOfScalarInvoker()
        {
            var commandStub = Substitute.For <IScalarCommand <bool> >();
            var invoker     = new DbInvokerFactory().Create(commandStub);

            Assert.IsInstanceOf <ScalarCommandInvoker <bool> >(invoker);
        }
Exemple #3
0
        public void CreateInvokerForFirstResultOrDefaultCommand_ExpectInstanceOfFirstResultOrDefaultInvoker()
        {
            var commandStub = Substitute.For <IFirstResultOrDefaultCommand <bool> >();
            var invoker     = new DbInvokerFactory().Create(commandStub);

            Assert.IsInstanceOf <FirstResultOrDefaultCommandInvoker <bool> >(invoker);
        }
Exemple #4
0
        public void CreateInvokerForManyResultCommand_ExpectInstanceOfManyResultInvoker()
        {
            var commandStub = Substitute.For <IManyResultsCommand <bool> >();
            var invoker     = new DbInvokerFactory().Create(commandStub);

            Assert.IsInstanceOf <ManyResultsCommandInvoker <bool> >(invoker);
        }
Exemple #5
0
        public void CreateInvokerForGenericNonQueryCommand_ExpectInstanceOfGenericNonQueryInvoker()
        {
            var commandStub = Substitute.For <INonQueryCommand <bool> >();
            var invoker     = new DbInvokerFactory().Create(commandStub);

            Assert.IsInstanceOf <NonQueryCommandInvoker <bool> >(invoker);
        }