public AuthController(IAuthSupplier supplier) { _supplier = supplier; }
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)); }