Example #1
0
        public async Task Test_LoadQuestions_Makes_A_Request_To_The_Api()
        {
            var questions = new[]
            {
                new Question()
                {
                    Score = 5
                },
                new Question()
                {
                    Score = -1
                }
            };

            NetworkApi.Question((ids, site, filter) => Task.FromResult(new Response <Question>()
            {
                Items = questions
            }));

            await Subject.LoadQuestions.Execute();

            Assert.Equal("5", Subject.Question.Score);
        }