コード例 #1
0
        public BookControllerTests()
        {
            autoMapperConfiguration = new AutoMapperConfiguration();
            autoMapperConfiguration.Configure();
            fixture = new Fixture().Customize(new AutoFixtureCustomization());

            mocks = new MockRepository();
            bookRepositoryMock = mocks.DynamicMock<IBookRepository>();
            controller = new BookController(bookRepositoryMock);
        }
コード例 #2
0
        public LibraryCardControllerTests()
        {
            autoMapperConfiguration = new AutoMapperConfiguration();
            autoMapperConfiguration.Configure();
            fixture = new Fixture().Customize(new AutoFixtureCustomization());

            mocks = new MockRepository();
            libraryCardRepositoryMock = mocks.DynamicMock<ILibraryCardRepository>();
            controller = new LibraryCardController(libraryCardRepositoryMock);
        }
コード例 #3
0
        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();
        }
コード例 #4
0
 public AuthorAutoMapperTests()
 {
     fixture = new Fixture().Customize(new AutoFixtureCustomization());
     autoMapperConfiguration = new AutoMapperConfiguration();
     autoMapperConfiguration.Configure();
 }