private void AssumeInsertCommandIsInitialised() { InsertCommand = Substitute.For <IInsertCommand <TestEntity> >(); InsertCommand.For(Entity) .Returns(InsertCommand); CommandFactory.CreateInsert <TestEntity>() .Returns(InsertCommand); }