public async Task ReturnEnumerationItemsListViewModel() { var handler = new GetAllLessonTypesQueryHandler(Context); var result = await handler.Handle(new GetAllLessonTypesQuery(), CancellationToken.None); Assert.IsInstanceOf(typeof(EnumerationItemsListViewModel), result); }
public async Task ReturnCorrectLessonTypesAmount() { var handler = new GetAllLessonTypesQueryHandler(Context); var result = await handler.Handle(new GetAllLessonTypesQuery(), CancellationToken.None); Assert.AreEqual(result.Items.Count, 1); }