public DomainEventsDispatcher(IMediator mediator, ILifetimeScope scope, EmployeeDbContext context) { _mediator = mediator; _scope = scope; _context = context; }