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);
 }
Пример #2
0
 public async Task <IEnumerable <Context> > Handle(ViewContexts command)
 {
     return(await _repo.GetAll());
 }