public ProductRepositoryAdapter(
     IScenarioDbContext dbContext,
     IProductRepository repository,
     IClock clock) : base(dbContext, repository)
 {
     _clock = clock;
 }
示例#2
0
 public ClashRepositoryAdapter(IScenarioDbContext dbContext, IClashRepository repository) : base(dbContext, repository)
 {
     Fixture.Customize <TimeAndDowAPI>(composer => composer
                                       .With(x => x.DaysOfWeek, () => new List <string> {
         "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
     }));
 }
 public AutoBookDefaultParametersRepositoryAdapter(
     IScenarioDbContext dbContext,
     IAutoBookDefaultParametersRepository repository
     ) : base(dbContext, repository)
 {
     Fixture.Customizations.Add(new TypeRelay(
                                    typeof(IAutoBookDefaultParameters),
                                    typeof(AutoBookDefaultParameters)));
 }
示例#4
0
 public EventScenarioService(InMemoryTestHarness inMemoryTestHarness,
                             IObjectContainer objectContainer,
                             IScenarioDbContext scenarioDbContext,
                             IServiceBus serviceBus,
                             IGroupTransactionExecutionService groupTransactionExecutionService,
                             ITestOutputHelper output)
 {
     _inMemoryTestHarness = inMemoryTestHarness;
     _objectContainer     = objectContainer;
     _scenarioDbContext   = scenarioDbContext;
     _serviceBus          = serviceBus;
     _groupTransactionExecutionService = groupTransactionExecutionService;
     _output = output;
 }
        public CampaignRepositoryAdapter(IScenarioDbContext dbContext, ICampaignRepository repository) : base(dbContext, repository)
        {
            Fixture.Customize <CampaignProgramme>(composer => composer
                                                  .With(p => p.CategoryOrProgramme, Fixture.CreateMany <string>(3))
                                                  .With(p => p.SalesAreas, Fixture.CreateMany <string>(3))
                                                  );

            Fixture.Customize <ProgrammeRestriction>(composer => composer
                                                     .With(p => p.IsCategoryOrProgramme, CategoryOrProgrammeValues[_randomizer.Next(0, 2)])
                                                     .With(p => p.IsIncludeOrExclude, IncludeOrExcludeValues[_randomizer.Next(0, 2)]));

            Fixture.Customize <TimeRestriction>(composer => composer
                                                .With(p => p.IsIncludeOrExclude, IncludeOrExcludeValues[_randomizer.Next(0, 2)])
                                                .With(p => p.DowPattern, new List <string> {
                "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
            }));

            Fixture.Customize <Timeslice>(composer => composer
                                          .With(p => p.FromTime, DateTime.UtcNow.ToString("HH:mm", CultureInfo.InvariantCulture))
                                          .With(p => p.ToTime, DateTime.UtcNow.ToString("HH:mm", CultureInfo.InvariantCulture))
                                          .With(p => p.DowPattern, new List <string> {
                "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
            }));
        }
示例#6
0
 public ClearanceRepositoryAdapter(IScenarioDbContext dbContext, IClearanceRepository repository) : base(dbContext, repository)
 {
 }
 public AccessTokenRepositoryAdapter(
     IScenarioDbContext dbContext,
     IAccessTokensRepository repository
     ) : base(dbContext, repository)
 {
 }
 public ResultsFileRepositoryAdapter(IScenarioDbContext dbContext, IResultsFileRepository repository,
                                     ResultsFileCoordinator resultsFileCoordinator) : base(dbContext, repository)
 {
     _resultsFileCoordinator = resultsFileCoordinator;
 }
示例#9
0
 public ScenarioCampaignMetricRepositoryAdapter(IScenarioDbContext dbContext, IScenarioCampaignMetricRepository repository) : base(
         dbContext, repository)
 {
 }
 public AutoBookInstanceConfigurationRepositoryAdapter(
     IScenarioDbContext dbContext,
     IAutoBookInstanceConfigurationRepository repository
     ) : base(dbContext, repository)
 {
 }
示例#11
0
 public AutoBookRepositoryAdapter(IScenarioDbContext dbContext, IAutoBookRepository repository)
     : base(dbContext, repository)
 {
 }
 public TotalRatingRepositoryAdapter(IScenarioDbContext dbContext, ITotalRatingRepository repository) : base(
         dbContext, repository)
 {
 }
示例#13
0
 public UserService(IScenarioDbContext dbContext) : base(dbContext)
 {
 }
示例#14
0
 public TenantsRepositoryAdapter(
     IScenarioDbContext dbContext,
     ITenantsRepository repository
     ) : base(dbContext, repository)
 {
 }
示例#15
0
 public UpdateDetailsRepositoryAdapter(
     IScenarioDbContext dbContext,
     IUpdateDetailsRepository repository
     ) : base(dbContext, repository)
 {
 }
 public SalesAreaDemographicRepositoryAdapter(IScenarioDbContext dbContext, ISalesAreaDemographicRepository repository) : base(dbContext, repository)
 {
 }
 public RSGlobalSettingsRepositoryAdapter(IScenarioDbContext dbContext, IRSGlobalSettingsRepository repository) : base(dbContext, repository)
 {
 }
 public SpotPlacementRepositoryAdapter(IScenarioDbContext dbContext, ISpotPlacementRepository repository) :
     base(dbContext, repository)
 {
 }
 public ProgrammeCategoryRepositoryAdapter(IScenarioDbContext dbContext, IProgrammeCategoryHierarchyRepository repository) : base(dbContext,
                                                                                                                                  repository)
 {
 }
示例#20
0
 public LegnthFactorRepositoryAdapter(IScenarioDbContext dbContext, ILengthFactorRepository repository) : base(dbContext, repository)
 {
 }
示例#21
0
 public UsersRepositoryAdapter(IScenarioDbContext dbContext, IUsersRepository repository)
     : base(dbContext, repository)
 {
 }
示例#22
0
 public ProgrammeRepositoryAdapter(IScenarioDbContext dbContext, IProgrammeRepository repository) : base(dbContext, repository)
 {
 }
示例#23
0
 public ISRSettingsRepositoryAdapter(IScenarioDbContext dbContext, IISRSettingsRepository repository) : base(dbContext, repository)
 {
 }
 public ProjectService(IScenarioDbContext dbContext) : base(dbContext)
 {
 }
 public StandardDayPartRepositoryAdapter(IScenarioDbContext dbContext, IStandardDayPartRepository repository)
     : base(dbContext, repository)
 {
 }
 public IndexTypeRepositoryAdapter(IScenarioDbContext dbContext, IIndexTypeRepository repository)
     : base(dbContext, repository)
 {
 }
示例#27
0
 public FlexibilityLevelRepositoryAdapter(IScenarioDbContext dbContext, IFlexibilityLevelRepository repository) : base(dbContext, repository)
 {
 }
示例#28
0
 protected JsonTestDataImporter(IScenarioDbContext scenarioDbContext, IObjectContainer objectContainer) : base(scenarioDbContext)
 {
     _objectContainer = objectContainer;
 }
 public BusinessTypeRepositoryAdapter(IScenarioDbContext dbContext, IBusinessTypeRepository repository) : base(dbContext, repository)
 {
 }
 public ClashExceptionRepositoryAdapter(IScenarioDbContext dbContext, IClashExceptionRepository repository) : base(dbContext, repository)
 {
 }