public async Task Get3Results() { var query = new GetAllResultsQuery(); var handler = new GetAllResultsHandler(_mock.Object); var result = await handler.Handle(query, CancellationToken.None); Assert.AreEqual(result.Count, 3); }
public async Task ListNotNull() { var query = new GetAllResultsQuery(); var handler = new GetAllResultsHandler(_mock.Object); var result = await handler.Handle(query, CancellationToken.None); Assert.NotNull(result); }