Exemplo 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));
        }
Exemplo 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));
        }