public AuditTrailService(IAuditTrailQueryService queryService, ICommandBus commandBus, IAuthenticatedUserContext userContext) { if (queryService == null) { throw new ArgumentException("queryService"); } if (commandBus == null) { throw new ArgumentNullException("commandBus"); } if (userContext == null) { throw new ArgumentNullException(nameof(userContext)); } this.queryService = queryService; this.commandBus = commandBus; this.userContext = userContext; mapperFactory = new MapperFactory(); }
public AuditTrailService(IAuditTrailQueryService queryService, ICommandBus commandBus, IAuthenticatedUserContext userContext) { if (queryService == null) { throw new ArgumentException("queryService"); } if (commandBus == null) { throw new ArgumentNullException("commandBus"); } if (userContext == null) { throw new ArgumentNullException(nameof(userContext)); } this.queryService = queryService; this.commandBus = commandBus; this.userContext = userContext; mapperFactory = new MapperFactory(); }