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); }
public TodoController(TodoRepository repository, BloggerGateway gateway, ThoughtRepository thoughtRepository, TopicRepository topicRepository) { this.repository = repository; this.gateway = gateway; this.thoughtRepository = thoughtRepository; this.topicRepository = topicRepository; }
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); }
public ThoughtController(ThoughtRepository thoughtRepository, TopicRepository topicRepository) { this.thoughtRepository = thoughtRepository; this.topicRepository = topicRepository; }