Example #1
0
        public CorporateCustomerController(Infrastructure.Contexts.CustomerContext context, ICustomerEventBusService customerEventBusService)
        {
            _customerContext = context ??
                               throw new ArgumentNullException(nameof(context));
            _customerEventBusService = customerEventBusService ??
                                       throw new ArgumentNullException(nameof(context));

            context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }