Esempio n. 1
0
 public BonusController(
     BonusManagementCommands bonusCommands,
     BonusQueries bonusQueries)
 {
     _bonusCommands = bonusCommands;
     _bonusQueries  = bonusQueries;
 }
        public override void BeforeEach()
        {
            base.BeforeEach();

            _bonusQueries            = Container.Resolve <BonusQueries>();
            _bonusManagementCommands = Container.Resolve <BonusManagementCommands>();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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
                }
            };
        }
Esempio n. 5
0
 public ApplicationSeeder(BonusManagementCommands bonusManagementCommands, IBonusRepository bonusRepository)
 {
     _bonusManagementCommands = bonusManagementCommands;
     _bonusRepository         = bonusRepository;
 }