/// <summary>
 /// Updates the questions set data.
 /// </summary>
 /// <returns>The questions set data.</returns>
 /// <param name="pQuestionsSetName">Questions set name.</param>
 public ResponseDTO <object> UpdateQuestionsSetData(string pQuestionsSetName)
 {
     try
     {
         return(_questionsSetService.UpdateQuestionsSetData(pQuestionsSetName));
     }
     catch (Exception ex)
     {
         _logger.Error(ex, "Failed to update Questions Set data.");
         return(ResponseDTO.InternalError(ErrorMessageHelper.FailedOperation("updating questions set data")));
     }
 }
예제 #2
0
 public void UpdateDataShouldThrowNotImplementedException()
 {
     _qsImporterFactoryMock.Setup(mock => mock.GetImporter(It.IsAny <string>())).Throws(new NotImplementedException());
     Assert.Throws <NotImplementedException>(() => _service.UpdateQuestionsSetData("ABCD1234"));
 }