Exemple #1
0
        public async Task ReturnEnumerationItemsListViewModel()
        {
            var handler = new GetAllAcademicDegreesQueryHandler(Context);

            var result = await handler.Handle(new GetAllAcademicDegreesQuery(), CancellationToken.None);

            Assert.IsInstanceOf(typeof(EnumerationItemsListViewModel), result);
        }
Exemple #2
0
        public async Task ReturnCorrectAcademicDegreesAmount()
        {
            var handler = new GetAllAcademicDegreesQueryHandler(Context);

            var result = await handler.Handle(new GetAllAcademicDegreesQuery(), CancellationToken.None);

            Assert.AreEqual(result.Items.Count, 1);
        }