public WageringController( IWagerConfigurationQueries wagerConfigurationQueries, BrandQueries brandQueries, IWagerConfigurationCommands wagerConfigurationCommands, IAdminQueries adminQueries) { _wagerConfigurationQueries = wagerConfigurationQueries; _wagerConfigurationCommands = wagerConfigurationCommands; _adminQueries = adminQueries; _brandQueries = brandQueries; }
public override void BeforeEach() { base.BeforeEach(); _wagerConfigurationCommands = Container.Resolve <IWagerConfigurationCommands>(); _wagerConfigurationQueries = Container.Resolve <IWagerConfigurationQueries>(); _brandRepository = Container.Resolve <FakeBrandRepository>(); _actorInfoProvider = Container.Resolve <IActorInfoProvider>(); foreach (var currencyCode in TestDataGenerator.CurrencyCodes) { _brandRepository.Currencies.Add(new Currency { Code = currencyCode }); } }
public override void BeforeEach() { base.BeforeEach(); _wagerConfigurationCommands = Container.Resolve <IWagerConfigurationCommands>(); _wagerConfigurationQueries = Container.Resolve <IWagerConfigurationQueries>(); _brandRepository = Container.Resolve <FakeBrandRepository>(); _brandTestHelper = Container.Resolve <BrandTestHelper>(); var securityTestHelper = Container.Resolve <SecurityTestHelper>(); securityTestHelper.PopulatePermissions(); securityTestHelper.CreateAndSignInSuperAdmin(); foreach (var currencyCode in TestDataGenerator.CurrencyCodes) { _brandRepository.Currencies.Add(new Currency { Code = currencyCode }); } _brand = _brandTestHelper.CreateBrand(isActive: true); }