コード例 #1
0
 public AskQuestionCommandBuilder WithExistingQuestionTitle(List <Question> question)
 {
     _questionGateway.GetAll(Arg.Any <CancellationToken>()).Returns(question);
     return(this);
 }
コード例 #2
0
 public Task <List <Question> > GetAllQuestions(CancellationToken cancellationToken)
 {
     return(_questionGateway.GetAll(cancellationToken));
 }