public async Task ReturnLectorsListViewModel() { var handler = new GetAllLectorsQueryHandler(Context); var result = await handler.Handle(new GetAllLectorsQuery(), CancellationToken.None); Assert.IsInstanceOf(typeof(LectorsListViewModel), result); }
public async Task ReturnCorrectLectorsAmount() { var handler = new GetAllLectorsQueryHandler(Context); var result = await handler.Handle(new GetAllLectorsQuery(), CancellationToken.None); Assert.AreEqual(result.Lectors.Count, 2); }