public VoucherControllerTests()
        {
            _mockHttpHandler = new MockHttpMessageHandler();
            _logger          = new Mock <ILogger>();
            _config          = new VoucherServiceConfigStub();
            _voucherUrl      = _config.BaseUrl + _config.IssueVoucherPath;

            var policy = new GetVoucherPolicy(_logger.Object);

            _voucherService = new VoucherServiceClient(_mockHttpHandler.ToHttpClient(), policy, _config);

            SystemClock.Sleep = (e, a) => e = TimeSpan.FromMilliseconds(1);
        }
 public VoucherController(IVoucherServiceClient voucherService)
 {
     _voucherService = voucherService;
 }