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 ZoneController(CreateZoneCommandHandler zoneCommandHandler, GetZoneListQueryHandler getZoneListQueryHandler) { _createZoneCommandHandler = zoneCommandHandler; _getZoneListQueryHandler = getZoneListQueryHandler; }