Example #1
0
 public CampaignService(ICampaignRepository campaignRepository, IBuyerRepository buyerRepository, IProductRepository productRepository, IMatchingService matchingService)
 {
     this.campaignRepository = campaignRepository;
     this.buyerRepository = buyerRepository;
     this.productRepository = productRepository;
     this.matchingService = matchingService;
 }
Example #2
0
 public BuyerController(IBuyerRepository buyerRepo, IMetaProductRepository metaProductRepo, IBuyerService buyerService, ICanSave saver)
 {
     _buyerRepo = buyerRepo;
     _metaProductRepo = metaProductRepo;
     _buyerService = buyerService;
     this.saver = saver;
 }
 public AuthController(IConfiguration _config, IAuthRepo _repo, IMapper _mapper, IBuyerRepository _BRepo)
 {
     config = _config;
     repo   = _repo;
     mapper = _mapper;
     bRepo  = _BRepo;
 }
 public OrderManager(IProductRepository ProductRepository, IMapper mapper, IOrderRepository orderRepo, IBuyerRepository buyerRepository)
 {
     _productRepo     = ProductRepository;
     _mapper          = mapper;
     _buyerRepository = buyerRepository;
     _orderRepo       = orderRepo;
 }
 public ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler(
     IBuyerRepository buyerRepository,
     IEventBus eventBus)
 {
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
 }
 public BuyerRepositoryService()
 {
     IoCManagerCore.Start();
     _buyerRepository = IoCManagerCore.Kernel.Get<IBuyerRepository>();
     _productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
     _wrapper = new WrapperBuyer();
 }
 public AccountController(IBuyerRepository buyerRepository,
                          ISellerRepository sellerRepository,
                          ApplicationUserManager userManager)
 {
     _buyerRepository  = buyerRepository;
     _sellerRepository = sellerRepository;
     _userManager      = userManager;
 }
 public OrderShippedDomainEventHandler(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository, IMessageOutbox messageOutbox)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _messageOutbox   = messageOutbox;
 }
Example #9
0
 public BuyerService(ISellerRepository sellerRepository,
                     IBuyerRepository buyerRepository,
                     ILedgerRepository ledgerRepository)
 {
     _sellerRepository = sellerRepository;
     _buyerRepository  = buyerRepository;
     _ledgerRepository = ledgerRepository;
 }
Example #10
0
 public BuyerController(IMapper mapper,
                        ApplicationUserManager userManager,
                        IBuyerRepository buyerRepository)
 {
     _mapper          = mapper;
     _userManager     = userManager;
     _buyerRepository = buyerRepository;
 }
 public OrderStatusChangedToAwaitingValidationDomainEventHandler(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository, IMessageOutbox messageOutbox)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _buyerRepository = buyerRepository;
     _messageOutbox   = messageOutbox;
 }
 public ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler(ILogger <ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler> logger,
                                                                      IBuyerRepository buyerRepository,
                                                                      IIntegrationEventService integrationEventService)
 {
     _buyerRepository         = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _integrationEventService = integrationEventService ?? throw new ArgumentNullException(nameof(integrationEventService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #13
0
 public OrderStartedDomainEventHandler(IBuyerRepository buyerRepository,
                                       DoesBuyerExist doesBuyerExistService,
                                       ILogger <OrderStartedDomainEventHandler> logger)
 {
     this.logger                = logger;
     this.buyerRepository       = buyerRepository;
     this.doesBuyerExistService = doesBuyerExistService;
 }
Example #14
0
 public ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler(
     ILoggerFactory logger,
     IBuyerRepository buyerRepository,
     IIdentityService identityService)
 {
     this._buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     this._identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
     this._logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public OrderStatusChangedToStockConfirmedDomainEventHandler(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository,
     IEventBus eventBus)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
 }
Example #16
0
 public HomeController(
     ILogger <HomeController> logger,
     IBuyerRepository buyerRepository,
     IEventRepository eventRepository)
 {
     _logger          = logger;
     _buyerRepository = buyerRepository;
     _eventRepository = eventRepository;
 }
Example #17
0
 public OrderStatusChangedToAwaitingValidationDomainEventHandler(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository,
     IEventBus eventBus)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _buyerRepository = buyerRepository;
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
 }
Example #18
0
 public OrderShippedDomainEventHandler(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository,
     IEventBus eventBus)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
 }
Example #19
0
 private void UpdateSelectedBuyer()
 {
     buyerRepository = new BuyerRepository();
     showBuyer.Items.Clear();
     foreach (Buyer buyer in buyerRepository.GetAll())
     {
         showBuyer.Items.Add(buyer);
     }
 }
Example #20
0
 public ValidateOrAddBuyerOnOrderStartedEventHandler(
     IIdentityService identityService,
     IBuyerRepository buyerRepository,
     ILoggerFactory loggerFactory)
 {
     _logger          = loggerFactory;
     _identityService = identityService;
     _buyerRepository = buyerRepository;
 }
Example #21
0
 public UsersController(IBuyerRepository buyerRepository,
                        ISellerRepository sellerRepository,
                        ApplicationUserManager userManager,
                        IUserRepository userRepository)
 {
     _buyerRepository  = buyerRepository;
     _sellerRepository = sellerRepository;
     _userManager      = userManager;
     _userRepository   = userRepository;
 }
Example #22
0
 public ShoppingCartController(IMapper mapper,
                               IBuyerRepository buyerRepository,
                               IShoppingCartRepository shoppingCartRepository,
                               IProductRepository productRepository)
 {
     _mapper                 = mapper;
     _buyerRepository        = buyerRepository;
     _shoppingCartRepository = shoppingCartRepository;
     _productRepository      = productRepository;
 }
 public OrderStatusChangedToAwaitingValidationDomainEventHandler(
     IOrderRepository orderRepository, ILoggerFactory logger,
     IBuyerRepository buyerRepository,
     IOrderingIntegrationEventService orderingIntegrationEventService)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _buyerRepository = buyerRepository;
     _orderingIntegrationEventService = orderingIntegrationEventService;
 }
 public ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler(
     IBuyerRepository buyerRepository,
     IOrderingIntegrationEventService orderingIntegrationEventService,
     ILoggerFactory loggerFactory)
 {
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
     _orderingIntegrationEventService = orderingIntegrationEventService ??
                                        throw new ArgumentNullException(nameof(orderingIntegrationEventService));
     _logger = loggerFactory.CreateLogger(nameof(ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler));
 }
Example #25
0
 public OrderCancelledDomainEventHandler(
     IOrderRepository orderRepository,
     ILoggerFactory logger,
     IBuyerRepository buyerRepository,
     IOrderingIntegrationEventService orderingIntegrationEventService)
 {
     _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _buyerRepository = buyerRepository ?? throw new ArgumentNullException(nameof(buyerRepository));
 }
Example #26
0
 public ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler(
     ILoggerFactory logger,
     IBuyerRepository buyerRepository,
     IIdentityService identityService,
     IOrderingIntegrationEventService orderIntegrationEventService)
 {
     this._identityService = identityService;
     this._orderIntegrationEventService = orderIntegrationEventService;
     this._logger          = logger;
     this._buyerRepository = buyerRepository;
 }
 public SellTicketsService(
     IConcertRepository concertRepository,
     IBuyerRepository buyerRepository,
     ITicketsService ticketsService,
     IPublishEvents eventPublisher)
 {
     _concertRepository = concertRepository;
     _buyerRepository   = buyerRepository;
     _ticketsService    = ticketsService;
     _eventPublisher    = eventPublisher;
 }
 public SendStockConfirmedIntegrationEventWhenStockConfirmed(
     IOrderRepository orderRepository,
     IBuyerRepository buyerRepository,
     IOrderingIntegrationEventService orderingIntegrationEventService,
     ILogger <SendStockConfirmedIntegrationEventWhenStockConfirmed> logger)
 {
     _logger          = logger;
     _orderRepository = orderRepository;
     _buyerRepository = buyerRepository;
     _orderingIntegrationEventService = orderingIntegrationEventService;
 }
Example #29
0
        public void SetUp()
        {
            _builder = new DbContextOptionsBuilder <BuyerDBContext>().EnableSensitiveDataLogging().UseInMemoryDatabase(Guid.NewGuid().ToString());

            BuyerDBContext db = new BuyerDBContext(_builder.Options);

            db.Add(new Buyer {
                Buyerid = 134, Username = "******", Password = "******", Email = "*****@*****.**", Mobileno = "9182731927"
            });

            buyerRepository = new BuyerRepository(db);
        }
Example #30
0
 public OrderController(IMapper mapper,
                        ApplicationUserManager userManager,
                        IBuyerRepository buyerRepository,
                        ISellerRepository sellerRepository,
                        IOrderRepository orderRepository,
                        IShoppingCartRepository shoppingCartRepository,
                        IProductRepository productRepository)
 {
     _mapper                 = mapper;
     _userManager            = userManager;
     _buyerRepository        = buyerRepository;
     _sellerRepository       = sellerRepository;
     _orderRepository        = orderRepository;
     _shoppingCartRepository = shoppingCartRepository;
     _productRepository      = productRepository;
 }
Example #31
0
 public BuyerController(IBuyerRepository repo, IConfiguration configuration)
 {
     _repo = repo;
     this.configuration = configuration;
 }
 public BuyerController(IBuyerRepository repo)
 {
     _repo = repo;
 }
Example #33
0
 public BuyerBusinessService(IBuyerRepository repository)
 {
     this.repository = repository;
 }
Example #34
0
 public BuyerService(IBuyerRepository buyerRepo, ICanSave saver)
 {
     _buyerRepo = buyerRepo;
     this.saver = saver;
 }
 public BuyerService(IBuyerRepository repo)
 {
     this.repository = repo;
 }