public async Task GetZonesTest() { var sut = new GetZoneListQueryHandler(_context, _mapper); var result = await sut.Handle(new GetZoneListQuery(), CancellationToken.None); result.ShouldBeOfType <List <ZoneDto> >(); result.Count().ShouldBe(3); }
public ActionResult <IEnumerable <Actor> > Get(int page = 0, int pageSize = 10) { var resultListDto = _getZoneListQueryHandler.Handle(new GetZoneListQuery(page, pageSize)); return(Ok(resultListDto)); }