Exemplo n.º 1
0
        public void Setup()
        {
            //remove this call to base cause Resharper 4.5 doesn't support NUnit 2.5 very well yet
            setup();

            repository = new ThoughtRepository(session);
        }
Exemplo n.º 2
0
 public TodoController(TodoRepository repository, BloggerGateway gateway, 
     ThoughtRepository thoughtRepository, TopicRepository topicRepository)
 {
     this.repository = repository;
     this.gateway = gateway;
     this.thoughtRepository = thoughtRepository;
     this.topicRepository = topicRepository;
 }
Exemplo n.º 3
0
 public void setup()
 {
     mocks = new MockRepository();
     builder = new TestControllerBuilder();
     session = mocks.DynamicMock<ISession>();
     thoughtRepository = mocks.StrictMock<ThoughtRepository>(session);
     topicRepository = mocks.StrictMock<TopicRepository>(session);
     thoughtController = new ThoughtController(thoughtRepository, topicRepository);
     builder.InitializeController(thoughtController);
 }
Exemplo n.º 4
0
 public ThoughtController(ThoughtRepository thoughtRepository, TopicRepository topicRepository)
 {
     this.thoughtRepository = thoughtRepository;
     this.topicRepository = topicRepository;
 }