public void Setup() { executableProcess = MockRepository.GenerateMock <IExecutableProcess>(); logger = MockRepository.GenerateMock <ILogger>(); logger.Stub(x => x.Log(Arg <string> .Is.Anything)); netshFirewallRuleNameAvailable = new NetshFirewallRuleNameAvailable(executableProcess, logger); }
public void Setup() { executableProcess = MockRepository.GenerateMock<IExecutableProcess>(); logger = MockRepository.GenerateMock<ILogger>(); logger.Stub(x => x.Log(Arg<string>.Is.Anything)); netshFirewallRuleNameAvailable = new NetshFirewallRuleNameAvailable(executableProcess, logger); }
public void Setup() { execProcess = MockRepository.GenerateMock <IExecutableProcess>(); logger = MockRepository.GenerateMock <ILogger>(); logger.Stub(x => x.Log(Arg <string> .Is.Anything)); systemInformation = new SystemInformation(execProcess, logger); input = new String('x', 200) + @"Windows Boot Loader\n\n\n\n" + new String('y', 200) + " {my unique identifier} " + new string('z', 302); }
public void Setup() { execProcess = MockRepository.GenerateMock<IExecutableProcess>(); logger = MockRepository.GenerateMock<ILogger>(); logger.Stub(x => x.Log(Arg<string>.Is.Anything)); systemInformation = new SystemInformation(execProcess, logger); input = new String('x', 200) + @"Windows Boot Loader\n\n\n\n" + new String('y', 200) + " {my unique identifier} " + new string('z', 302); }
public SystemInformation(IExecutableProcess execProcess, ILogger logger) { _execProcess = execProcess; _logger = logger; }
public NetshFirewallRuleNameAvailable(IExecutableProcess executableProcess, ILogger logger) { _executableProcess = executableProcess; }
public void Setup() { executable = MockRepository.GenerateMock <IExecutableProcess>(); xenStore = new XenStore(executable); }
public XenStore(IExecutableProcess executableProcess) { _executableProcess = executableProcess; }
public void Setup() { executable = MockRepository.GenerateMock<IExecutableProcess>(); xenStore = new XenStore(executable); }