Exemplo n.º 1
0
        public async Task ReturnEnumerationItemsListViewModel()
        {
            var handler = new GetAllEducationalDegreesQueryHandler(Context);

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

            Assert.IsInstanceOf(typeof(EnumerationItemsListViewModel), result);
        }
Exemplo n.º 2
0
        public async Task ReturnCorrectEducationalDegreesAmount()
        {
            var handler = new GetAllEducationalDegreesQueryHandler(Context);

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

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