public BonusController( BonusManagementCommands bonusCommands, BonusQueries bonusQueries) { _bonusCommands = bonusCommands; _bonusQueries = bonusQueries; }
public override void BeforeEach() { base.BeforeEach(); _bonusQueries = Container.Resolve <BonusQueries>(); _bonusManagementCommands = Container.Resolve <BonusManagementCommands>(); }
public override void BeforeAll() { base.BeforeAll(); Container = CreateContainer(); BonusCommands = Container.Resolve <BonusCommands>(); BonusRepository = Container.Resolve <IBonusRepository>(); ServiceBus = Container.Resolve <IServiceBus>(); BonusManagementCommands = Container.Resolve <BonusManagementCommands>(); Container.Resolve <BonusWorker>().Start(); }
public override void BeforeEach() { base.BeforeEach(); _bonusManagementCommands = Container.Resolve <BonusManagementCommands>(); _bonusMapper = Container.Resolve <BonusMapper>(); _brand = BonusRepository.Brands.First(); _model = new CreateUpdateTemplate { Id = Guid.Empty, Info = new CreateUpdateTemplateInfo { Name = TestDataGenerator.GetRandomString(), TemplateType = BonusType.FirstDeposit, BrandId = _brand.Id, WalletTemplateId = _brand.WalletTemplates.First().Id, Mode = IssuanceMode.Automatic } }; }
public ApplicationSeeder(BonusManagementCommands bonusManagementCommands, IBonusRepository bonusRepository) { _bonusManagementCommands = bonusManagementCommands; _bonusRepository = bonusRepository; }