public BookControllerTests()
        {
            autoMapperConfiguration = new AutoMapperConfiguration();
            autoMapperConfiguration.Configure();
            fixture = new Fixture().Customize(new AutoFixtureCustomization());

            mocks = new MockRepository();
            bookRepositoryMock = mocks.DynamicMock<IBookRepository>();
            controller = new BookController(bookRepositoryMock);
        }
        public LibraryCardControllerTests()
        {
            autoMapperConfiguration = new AutoMapperConfiguration();
            autoMapperConfiguration.Configure();
            fixture = new Fixture().Customize(new AutoFixtureCustomization());

            mocks = new MockRepository();
            libraryCardRepositoryMock = mocks.DynamicMock<ILibraryCardRepository>();
            controller = new LibraryCardController(libraryCardRepositoryMock);
        }
        protected void Application_Start()
        {
            log4NetConfiguration = new Log4NetConfiguration();
            filtersConfiguration = new FiltersConfiguration();
            routesConfiguration = new RoutesConfiguration();
            autoMapperConfiguration = new AutoMapperConfiguration();
            nHibernateConfiguration = new NHibernateConfiguration();
            windsorConfiguration = new WindsorConfiguration();
            transactionConfiguration = new TransactionConfiguration();

            AreaRegistration.RegisterAllAreas();

            log4NetConfiguration.Configure();
            filtersConfiguration.Configure();
            routesConfiguration.Configure();
            autoMapperConfiguration.Configure();
            nHibernateConfiguration.Configure();
            windsorConfiguration.Configure();
            transactionConfiguration.Configure();
        }
 public AuthorAutoMapperTests()
 {
     fixture = new Fixture().Customize(new AutoFixtureCustomization());
     autoMapperConfiguration = new AutoMapperConfiguration();
     autoMapperConfiguration.Configure();
 }