Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public ZoneController(CreateZoneCommandHandler zoneCommandHandler,
                       GetZoneListQueryHandler getZoneListQueryHandler)
 {
     _createZoneCommandHandler = zoneCommandHandler;
     _getZoneListQueryHandler  = getZoneListQueryHandler;
 }