private QuestionCommands CreateQuestionCommand(IQuestionGateway questionGateway, IAnswerGateway answerGateway, IRequestUserProvider requestUserProvider) { return(new QuestionCommands(questionGateway, requestUserProvider, answerGateway)); }
public AnswerQuestionBuilder() { _answerGateway = Substitute.For <IAnswerGateway>(); _questionGateway = Substitute.For <IQuestionGateway>(); _requestUserProvider = Substitute.For <IRequestUserProvider>(); }
public AnswersCommand(IAnswerGateway answersGateway, IQuestionGateway questionGateway, IRequestUserProvider requestUserProvider) { _answersGateway = answersGateway; _questionGateway = questionGateway; _requestUserProvider = requestUserProvider; }
public AskQuestionCommandBuilder() { _questionGateway = Substitute.For <IQuestionGateway>(); _requestUserProvider = Substitute.For <IRequestUserProvider>(); _answerGateway = Substitute.For <IAnswerGateway>(); }
public QuestionCommands(IQuestionGateway questionGateway, IRequestUserProvider requestUserProvider, IAnswerGateway answerGateway) { _questionGateway = questionGateway ?? throw new NullReferenceException("QuestionGateway value cannot be null"); _requestUserProvider = requestUserProvider ?? throw new NullReferenceException("RequestUserProvider value cannot be null"); _answersGateway = answerGateway ?? throw new NullReferenceException("AnswerGateway value cannot be null"); }