@@ -36,7 +36,7 @@ public void AddStdModule()
36
36
var mockHost = new Mock < IHostApplication > ( ) ;
37
37
mockHost . SetupAllProperties ( ) ;
38
38
39
- var commands = new List < ICommand > { new CodeExplorer_AddStdModuleCommand ( ) } ;
39
+ var commands = new List < ICommand > { new CodeExplorer_AddStdModuleCommand ( vbe . Object ) } ;
40
40
41
41
var state = new RubberduckParserState ( ) ;
42
42
var vm = new CodeExplorerViewModel ( new FolderHelper ( state , GetDelimiterConfigLoader ( ) ) , state , commands ) ;
@@ -64,7 +64,7 @@ public void AddClassModule()
64
64
var mockHost = new Mock < IHostApplication > ( ) ;
65
65
mockHost . SetupAllProperties ( ) ;
66
66
67
- var commands = new List < ICommand > { new CodeExplorer_AddClassModuleCommand ( ) } ;
67
+ var commands = new List < ICommand > { new CodeExplorer_AddClassModuleCommand ( vbe . Object ) } ;
68
68
69
69
var state = new RubberduckParserState ( ) ;
70
70
var vm = new CodeExplorerViewModel ( new FolderHelper ( state , GetDelimiterConfigLoader ( ) ) , state , commands ) ;
@@ -92,7 +92,7 @@ public void AddUserForm()
92
92
var mockHost = new Mock < IHostApplication > ( ) ;
93
93
mockHost . SetupAllProperties ( ) ;
94
94
95
- var commands = new List < ICommand > { new CodeExplorer_AddUserFormCommand ( ) } ;
95
+ var commands = new List < ICommand > { new CodeExplorer_AddUserFormCommand ( vbe . Object ) } ;
96
96
97
97
var state = new RubberduckParserState ( ) ;
98
98
var vm = new CodeExplorerViewModel ( new FolderHelper ( state , GetDelimiterConfigLoader ( ) ) , state , commands ) ;
@@ -126,7 +126,7 @@ public void AddTestModule()
126
126
var state = new RubberduckParserState ( ) ;
127
127
var commands = new List < ICommand >
128
128
{
129
- new CodeExplorer_AddTestModuleCommand ( new NewUnitTestModuleCommand ( state , configLoader . Object ) )
129
+ new CodeExplorer_AddTestModuleCommand ( vbe . Object , new NewUnitTestModuleCommand ( state , configLoader . Object ) )
130
130
} ;
131
131
132
132
var vm = new CodeExplorerViewModel ( new FolderHelper ( state , GetDelimiterConfigLoader ( ) ) , state , commands ) ;
0 commit comments