Esempio n. 1
0
        public void Setup()
        {
            authorRepository = new AuthorMongoRepository(TestHelper.GetMongoOptions());
            authorService    = new AuthorService(authorRepository);

            authorRepository.RemoveAll();

            controller = MyMvc.Controller <AuthorController>(instance => instance.WithDependencies(authorService));
        }
Esempio n. 2
0
        public void Setup()
        {
            bookRepository = new BookMongoRepository(TestHelper.GetMongoOptions());
            bookService    = new BookService(bookRepository);

            bookRepository.RemoveAll();

            controller = MyMvc.Controller <BookController>(instance => instance.WithDependencies(bookService));
        }