Пример #1
0
 public IntegrationTests()
 {
     this.mockRepository   = new MockRepository(MockBehavior.Strict);
     this.textInputter     = this.mockRepository.Create <ITextInputter>();
     this.textOutputter    = this.mockRepository.Create <ITextOutputter>();
     this.toyRobotAssembly = new ToyRobotAssembly(
         this.textInputter.Object,
         this.textOutputter.Object);
 }
Пример #2
0
        public static void Main(string[] args)
        {
            var textInputter     = new TextInputter();
            var textOutputter    = new TextOutputter();
            var toyRobotAssembly = new ToyRobotAssembly(textInputter, textOutputter);
            var driver           = toyRobotAssembly.ToyRobotDriver;

            driver.Run();
        }