public void HandleQuery_ThrowsNotFoundExceptionForUnknownId()
        {
            var query = new GetEmployeeDetailQuery
            {
                Id = 999
            };
            var handler = new GetEmployeeDetailQueryHandler(_context, _mapper);

            Should.Throw <NotFoundException>(async() =>
            {
                var result = await handler.Handle(query, CancellationToken.None);
            });
        }
        public async Task HandleQuery_ReturnsCorrectVmAndData()
        {
            var query = new GetEmployeeDetailQuery
            {
                Id = 3
            };
            var handler = new GetEmployeeDetailQueryHandler(_context, _mapper);

            var result = await handler.Handle(query, CancellationToken.None);

            result.ShouldBeOfType <EmployeeDetailVm>();
            result.FirstName.ShouldBe("Magdalena");
            result.LastName.ShouldBe("Vrabec");
            result.IsDriver.ShouldBe(true);
        }