public PairsReadModel(ISqlConnectionConfiguration sqlConnectionConfiguration) { _sqlConnectionConfiguration = sqlConnectionConfiguration ?? throw new ArgumentNullException(nameof(sqlConnectionConfiguration)); }
public UsersReadModel(ISqlConnectionConfiguration sqlConnectionConfiguration, ICorrelationContext correlationContext, IUserRepository userRepository) { _sqlConnectionConfiguration = sqlConnectionConfiguration ?? throw new ArgumentNullException(nameof(sqlConnectionConfiguration)); _correlationContext = correlationContext ?? throw new ArgumentNullException(nameof(correlationContext)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }