Example #1
0
        public async Task ReturnLectorsListViewModel()
        {
            var handler = new GetAllLectorsQueryHandler(Context);

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

            Assert.IsInstanceOf(typeof(LectorsListViewModel), result);
        }
Example #2
0
        public async Task ReturnCorrectLectorsAmount()
        {
            var handler = new GetAllLectorsQueryHandler(Context);

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

            Assert.AreEqual(result.Lectors.Count, 2);
        }