public PairsReadModel(ISqlConnectionConfiguration sqlConnectionConfiguration)
 {
     _sqlConnectionConfiguration = sqlConnectionConfiguration ?? throw new ArgumentNullException(nameof(sqlConnectionConfiguration));
 }
示例#2
0
 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));
 }