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); }
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); }