예제 #1
0
 public void Setup()
 {
     _controller = new SiteModelsController
     {
         Db = new FakeColumbusGiveCamp2011Context
         {
             SiteModels = new FakeSiteModelSet
                          {
                              new SiteModel()
                          }
         }
     };
     _result = _controller.Edit(_controller.Db.SiteModels.First().Id);
 }
예제 #2
0
 public void Setup()
 {
     _controller = new SiteModelsController
     {
         Db = new FakeColumbusGiveCamp2011Context
                  {
                      SiteModels = new FakeSiteModelSet
                          {
                              new SiteModel()
                          }
                  }
     };
        _result = _controller.Index();
 }