Exemplo n.º 1
0
 public void Init()
 {
     _configurationManager    = MockRepository.GenerateMock <IConfigurationManager>();
     _powerShellManager       = MockRepository.GenerateMock <IPowerShellManager>();
     _powershellScriptLoader  = MockRepository.GenerateMock <IPowershellScriptLoader>();
     _samAccountNameGenerator = MockRepository.GenerateMock <ISamAccountNameGenerator>();
 }
Exemplo n.º 2
0
 public UserController(IConfigurationManager configurationManager,
                       IPowerShellManager powerShellManager,
                       IPowershellScriptLoader powershellScriptLoader,
                       ISamAccountNameGenerator samAccountNameGenerator)
 {
     _configurationManager    = configurationManager;
     _powerShellManager       = powerShellManager;
     _powershellScriptLoader  = powershellScriptLoader;
     _samAccountNameGenerator = samAccountNameGenerator;
 }