public async Task ReturnSubjectsListViewModel() { var handler = new GetAllSubjectsQueryHandler(Context); var result = await handler.Handle(new GetAllSubjectsQuery(), CancellationToken.None); Assert.IsInstanceOf(typeof(SubjectsListViewModel), result); }
public async Task ReturnCorrectSubjectsAmount() { var handler = new GetAllSubjectsQueryHandler(Context); var result = await handler.Handle(new GetAllSubjectsQuery(), CancellationToken.None); Assert.AreEqual(result.Subjects.Count, 2); }