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