private async Task ViewingAllContexts() { var contextQuery = new ViewContexts(); var response = await _mediator.Send(contextQuery); response.Should().NotBeNull(); _contexts = response.Result; _context = _contexts.SingleOrDefault(c => c.Id == _contextId); }
public async Task <IEnumerable <Context> > Handle(ViewContexts command) { return(await _repo.GetAll()); }