Example #1
0
 public AuthController(IAuthSupplier supplier)
 {
     _supplier = supplier;
 }
Example #2
0
 public CSignUpCommand(IAuthSupplier authSupplier, Func <Boolean> getValidationResult, Action <ICollection <String> > returnValidationResult)
 {
     _authSupplier           = authSupplier ?? throw new ArgumentNullException(nameof(authSupplier));
     _getValidationResult    = getValidationResult ?? throw new ArgumentNullException(nameof(getValidationResult));
     _returnValidationResult = returnValidationResult ?? throw new ArgumentNullException(nameof(returnValidationResult));
 }