public void NumericSequenceIndex()
        {
            // Arrange
            NumericSequenceController controller = new NumericSequenceController();

            // Act
            ViewResult result = controller.NumericSequenceIndex() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
        public void NumericSequenceResult()
        {
            // Arrange
            NumericSequenceController controller = new NumericSequenceController();

            // Act
            PartialViewResult result = controller.NumericSequenceResult(10) as PartialViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
示例#3
0
        static void Main(string[] args)
        {
            FullFactory allFactories = new FullFactory(new ConsoleTasksLibBuilder(), new ValidatorBuilder(), new NumericSequenceBuilder());

            try
            {
                if (args.Length != 1)
                {
                    throw new ArgumentException();
                }

                Controller SequenceController = new NumericSequenceController(allFactories);

                SequenceController.Initialize(args[0]);
            }
            catch (Exception)
            {
                IOutsidePrinter printer = allFactories.TasksLibFactory.CreatePrinter();
                printer.ShowInstruction();
            }
        }