public void CreateInvokerForResultExistsCheckCommand_ExpectInstanceOfDoesResultExistsInvoker() { var commandStub = Substitute.For <IDoesResultExistCommand>(); var invoker = new DbInvokerFactory().Create(commandStub); Assert.IsInstanceOf <DoesResultExistCommandInvoker>(invoker); }
public void CreateInvokerForScalarCommand_ExpectInstanceOfScalarInvoker() { var commandStub = Substitute.For <IScalarCommand <bool> >(); var invoker = new DbInvokerFactory().Create(commandStub); Assert.IsInstanceOf <ScalarCommandInvoker <bool> >(invoker); }
public void CreateInvokerForFirstResultOrDefaultCommand_ExpectInstanceOfFirstResultOrDefaultInvoker() { var commandStub = Substitute.For <IFirstResultOrDefaultCommand <bool> >(); var invoker = new DbInvokerFactory().Create(commandStub); Assert.IsInstanceOf <FirstResultOrDefaultCommandInvoker <bool> >(invoker); }
public void CreateInvokerForManyResultCommand_ExpectInstanceOfManyResultInvoker() { var commandStub = Substitute.For <IManyResultsCommand <bool> >(); var invoker = new DbInvokerFactory().Create(commandStub); Assert.IsInstanceOf <ManyResultsCommandInvoker <bool> >(invoker); }
public void CreateInvokerForGenericNonQueryCommand_ExpectInstanceOfGenericNonQueryInvoker() { var commandStub = Substitute.For <INonQueryCommand <bool> >(); var invoker = new DbInvokerFactory().Create(commandStub); Assert.IsInstanceOf <NonQueryCommandInvoker <bool> >(invoker); }