public TicketControllerTest()
 {
     this.mirRep     = new Mocks.MirrorRepository();
     this.controller = new TicketsController(new Mocks.TicketRepository(), mirRep, new DummySocket());
     this.controller.ControllerContext = new ControllerContext()
     {
         HttpContext = new DefaultHttpContext()
     };
 }
Пример #2
0
 public MirrorControllerTest()
 {
     repository      = new Mocks.MirrorRepository();
     this.controller = new MirrorsController(repository, new DummySocket());
     this.controller.ControllerContext = new ControllerContext()
     {
         HttpContext = new DefaultHttpContext()
     };
 }