public async Task DeleteQuestion()
        {
            Context
            .Setup(x => x.GetCurrentUserAsync())
            .ReturnsAsync(ModelsCreationHelper.CreateAdmin);

            RepositoryQuestion
            .Setup(x => x.FindFirstAsync(It.IsAny <ISpecification <DatabaseQuestion> >()))
            .ReturnsAsync(ModelsCreationHelper.CreateDatabaseQuestion());

            await ServiceQuestion.DeleteQuestionAsync(999);

            Context
            .Setup(x => x.GetCurrentUserAsync())
            .ReturnsAsync(ModelsCreationHelper.CreateLecturer);

            RepositoryQuestion
            .Setup(x => x.FindFirstAsync(It.IsAny <ISpecification <DatabaseQuestion> >()))
            .ReturnsAsync(ModelsCreationHelper.CreateDatabaseQuestion());

            await ServiceQuestion.DeleteQuestionAsync(999);
        }
 public async Task <IActionResult> DeleteQuestion([FromRoute] int id)
 {
     return(await Ok(() => _serviceQuestion.DeleteQuestionAsync(id)));
 }