コード例 #1
0
        public async Task ListHas3Quizzes()
        {
            var query   = new GetAllQuizzesQuery();
            var handler = new GetAllQuizzesHandler(_mock.Object);

            var result = await handler.Handle(query, CancellationToken.None);

            Assert.AreEqual(result.Count, 3);
        }
コード例 #2
0
        public async Task ListQuizzesNotNull()
        {
            var query   = new GetAllQuizzesQuery();
            var handler = new GetAllQuizzesHandler(_mock.Object);

            var result = await handler.Handle(query, CancellationToken.None);

            Assert.IsNotNull(result);
        }