Esempio n. 1
0
        public void GetQuestionsSetsShouldReturnOk()
        {
            var mockResponse = ResponseDTO <IEnumerable <QuestionsSetDTO> > .Ok(new List <QuestionsSetDTO>());

            this._questionSetServiceMock.Setup(service => service.GetQuestionsSets()).Returns(mockResponse);

            var response = _operativeServices.GetQuestionsSets();

            Assert.IsTrue(response.Success);
            Assert.AreEqual(ResponseCode.Ok, response.Code);
            Assert.NotNull(response.Data);
        }
Esempio n. 2
0
 /// <summary>
 /// Gets all Questions Sets available.
 /// </summary>
 /// <returns>Questions set list.</returns>
 public ResponseDTO <IEnumerable <QuestionsSetDTO> > GetQuestionsSets()
 {
     return(_operativeService.GetQuestionsSets());
 }