Beispiel #1
0
 public void TestSetup()
 {
     this.tweetBase = MockRepository.GenerateStub<ITweetBase>();
     tweetBase.Stub(c => c.Tweets).Return(context);
     this.homeController = new HomeController(tweetBase);
     this.homeControllerNull = new HomeController();
     this.inputModel = new InputModel();
 }
Beispiel #2
0
 public void TestSetup()
 {
     this.tweetBase = MockRepository.GenerateStub <ITweetBase>();
     tweetBase.Stub(c => c.Tweets).Return(context);
     this.homeController     = new HomeController(tweetBase);
     this.homeControllerNull = new HomeController();
     this.inputModel         = new InputModel();
 }
Beispiel #3
0
 public HomeController(ITweetBase model)
 {
     this.model = model;
 }
Beispiel #4
0
 public HomeController(ITweetBase model)
 {
     this.model = model;
 }