示例#1
0
        public FestivalsRepositoryTestFixture()
        {
            Context = FestivalsDbContextFactory.Create();

            //var configurationProvider = new MapperConfiguration(cfg =>
            //{
            //    cfg.AddProfile<MappingProfile>();
            //});

            //Mapper = configurationProvider.CreateMapper();
        }
        public FestivalsRepositoryTestBase()
        {
            ContextBase = FestivalsDbContextFactory.Create();
            PropertyMappingServiceBase = new PropertyMappingService();

            MedievalFestivalsRepositoryBase = new FestivalsRepository(ContextBase, PropertyMappingServiceBase);

            FestivalsResourceParametersBase = new FestivalsResourceParameters();

            DateTimeMock = new Mock <IDateTimeService>();
            DateTimeMock.Setup(m => m.Now).Returns(DateTime.Now);
        }
 public void Dispose()
 {
     FestivalsDbContextFactory.Destroy(ContextBase);
 }