public CampaignService(ICampaignRepository campaignRepository, IBuyerRepository buyerRepository, IProductRepository productRepository, IMatchingService matchingService) { this.campaignRepository = campaignRepository; this.buyerRepository = buyerRepository; this.productRepository = productRepository; this.matchingService = matchingService; }
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; }
public BuyerService(ISellerRepository sellerRepository, IBuyerRepository buyerRepository, ILedgerRepository ledgerRepository) { _sellerRepository = sellerRepository; _buyerRepository = buyerRepository; _ledgerRepository = ledgerRepository; }
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)); }
public OrderStartedDomainEventHandler(IBuyerRepository buyerRepository, DoesBuyerExist doesBuyerExistService, ILogger <OrderStartedDomainEventHandler> logger) { this.logger = logger; this.buyerRepository = buyerRepository; this.doesBuyerExistService = doesBuyerExistService; }
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)); }
public HomeController( ILogger <HomeController> logger, IBuyerRepository buyerRepository, IEventRepository eventRepository) { _logger = logger; _buyerRepository = buyerRepository; _eventRepository = eventRepository; }
public OrderStatusChangedToAwaitingValidationDomainEventHandler( IOrderRepository orderRepository, IBuyerRepository buyerRepository, IEventBus eventBus) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _buyerRepository = buyerRepository; _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }
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)); }
private void UpdateSelectedBuyer() { buyerRepository = new BuyerRepository(); showBuyer.Items.Clear(); foreach (Buyer buyer in buyerRepository.GetAll()) { showBuyer.Items.Add(buyer); } }
public ValidateOrAddBuyerOnOrderStartedEventHandler( IIdentityService identityService, IBuyerRepository buyerRepository, ILoggerFactory loggerFactory) { _logger = loggerFactory; _identityService = identityService; _buyerRepository = buyerRepository; }
public UsersController(IBuyerRepository buyerRepository, ISellerRepository sellerRepository, ApplicationUserManager userManager, IUserRepository userRepository) { _buyerRepository = buyerRepository; _sellerRepository = sellerRepository; _userManager = userManager; _userRepository = userRepository; }
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)); }
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)); }
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; }
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); }
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; }
public BuyerController(IBuyerRepository repo, IConfiguration configuration) { _repo = repo; this.configuration = configuration; }
public BuyerController(IBuyerRepository repo) { _repo = repo; }
public BuyerBusinessService(IBuyerRepository repository) { this.repository = repository; }
public BuyerService(IBuyerRepository buyerRepo, ICanSave saver) { _buyerRepo = buyerRepo; this.saver = saver; }
public BuyerService(IBuyerRepository repo) { this.repository = repo; }