Пример #1
0
 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);
 }
Пример #3
0
        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;
 }
Пример #7
0
 public void Setup()
 {
     executable = MockRepository.GenerateMock <IExecutableProcess>();
     xenStore   = new XenStore(executable);
 }
 public XenStore(IExecutableProcess executableProcess)
 {
     _executableProcess = executableProcess;
 }
 public SystemInformation(IExecutableProcess execProcess, ILogger logger)
 {
     _execProcess = execProcess;
     _logger      = logger;
 }
Пример #10
0
 public XenStore(IExecutableProcess executableProcess)
 {
     _executableProcess = executableProcess;
 }
 public void Setup()
 {
     executable = MockRepository.GenerateMock<IExecutableProcess>();
     xenStore = new XenStore(executable);
 }