public void Setup() { authorRepository = new AuthorMongoRepository(TestHelper.GetMongoOptions()); authorService = new AuthorService(authorRepository); authorRepository.RemoveAll(); controller = MyMvc.Controller <AuthorController>(instance => instance.WithDependencies(authorService)); }
public void Setup() { bookRepository = new BookMongoRepository(TestHelper.GetMongoOptions()); bookService = new BookService(bookRepository); bookRepository.RemoveAll(); controller = MyMvc.Controller <BookController>(instance => instance.WithDependencies(bookService)); }