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