示例#1
0
 public RegisterUseCase(
     IValidator <RegisterRequest> validator,
     IFindQuery <User> findQuery)
     : base(validator)
 {
     _findQuery = findQuery;
 }
示例#2
0
 public RefreshTokenUseCase(
     IValidator <RefreshTokenRequest> validator,
     IFindQuery <Token> finder
     )
     : base(validator)
 {
     _finder = finder;
 }
示例#3
0
 public AddBookUseCase(
     IValidator <AddBookRequest> validator,
     IFindQuery <Author> authorFinder,
     IFindQuery <Genre> genreFinder
     ) : base(validator)
 {
     _authorFinder = authorFinder;
     _genreFinder  = genreFinder;
 }
示例#4
0
 public UpdateBookUseCase(
     IValidator <UpdateBookRequest> validator,
     IFindQuery <Author> authorFinder,
     IFindQuery <Genre> genreFinder,
     IFindQuery <Book> bookFinder
     )
     : base(validator)
 {
     _authorFinder = authorFinder;
     _genreFinder  = genreFinder;
     _bookFinder   = bookFinder;
 }
示例#5
0
 public LoginUseCase(IFindQuery <User> findUser, IValidator <LoginRequest> validator)
     : base(validator)
 {
     _findUser = findUser;
 }
示例#6
0
 public IEnumerable <T2> Find <T2>(IFindQuery <T2> query)
 {
     return(query.Find(LocaleDatastore));
 }
示例#7
0
 public IEnumerable <string> Find(IFindQuery <string> query)
 {
     return(query.Find(LocaleDatastore));
 }
示例#8
0
 public IEnumerable <T2> Find <T2>(IFindQuery <T2> dataQuery) => dataQuery.Find(Data);
示例#9
0
 public IEnumerable <T> Find(IFindQuery <T> dataQuery) => dataQuery.Find(Data);