Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            ICommandFactory factory = new CommandFactory();
            ICommand command = factory.CreateCommand(args);

            IAppController appController = new AppController(command);
            appController.Execute();
        }
        public void Should_Parse_Strings()
        {
            string[] stubStrings = new[] {"foo", "bar"};

            ICommandFactory sut = new CommandFactory();
            using (Mocks.Playback())
            {
                ICommand command = sut.CreateCommand(stubStrings);
            }
        }