public void SetUp() { log = Substitute.For<ILog>(); subCommands = Substitute.For<IDictionary<string, ICommand>>(); createCommand = new CreateCommand(log, subCommands); }
public void SetUp() { invalidArgument = "blah"; log = Substitute.For<ILog>(); subCommands = Substitute.For<IDictionary<string, ICommand>>(); subCommands.ContainsKey(invalidArgument).Returns(false); createCommand = new CreateCommand(log, subCommands); }
public void SetUp() { subCommandArgument = "subCommand"; additionalArgument = "additionalArgument"; subCommand = Substitute.For<ICommand>(); subCommand.Execute(Arg.Any<string[]>()).Returns(ExitCode.Success); log = Substitute.For<ILog>(); subCommands = Substitute.For<IDictionary<string, ICommand>>(); subCommands.ContainsKey(subCommandArgument).Returns(true); subCommands[subCommandArgument] = subCommand; createCommand = new CreateCommand(log, subCommands); }