Пример #1
0
    public async Task GetByIdShouldGetQuestion()
    {
        SavedQuestion question = new SavedQuestion()
        {
            Choices = new[] { new ChoicesVotes()
                              {
                                  Choice = Choices.ObjectiveC, Votes = 0
                              } },
            ImageUrl     = "",
            QuestionText = "Sample Question",
            ThumbUrl     = ""
        };

        var result = await _provider.Save(question);

        var savedQuestion = await _provider.GetById(result);

        QuestionsAreEqual(question, savedQuestion);
    }