public void then_tehcnical_no_results_should_be_thrown()
        {
            _request = new[] { new NoRecordCarIdLightstoneOnlyRequest() };
            _response = new Collection<IPointToLaceProvider>();

            _consumer = new LightstoneAutoDataProvider(_request, null, null, _command);
            _consumer.CallSource(_response);


            _response.OfType<IProvideDataFromLightstoneAuto>().First().ShouldNotBeNull();
            _response.OfType<IProvideDataFromLightstoneAuto>().First().Handled.ShouldBeTrue();
            _response.OfType<IProvideDataFromLightstoneAuto>().First().ResponseState.ShouldEqual(DataProviderResponseState.NoRecords);
            _response.OfType<IProvideDataFromLightstoneAuto>().First().ResponseStateMessage.ShouldNotBeEmpty();
        }
        public void then_tehcnical_error_should_be_thrown()
        {
            _request = new[] { new LicensePlateNumberLightstoneOnlyRequest() };
            _response = new Collection<IPointToLaceProvider>()
            {
                IvidResponse.WithState(DataProviderResponseState.TechnicalError)
            };

            _consumer = new LightstoneAutoDataProvider(_request, null, null, _command);
            _consumer.CallSource(_response);

            _response.HasAllRecords().ShouldBeFalse();
            _response.OfType<IProvideDataFromLightstoneAuto>().First().ShouldNotBeNull();
            _response.OfType<IProvideDataFromLightstoneAuto>().First().Handled.ShouldBeTrue();
            _response.OfType<IProvideDataFromLightstoneAuto>().First().ResponseState.ShouldEqual(DataProviderResponseState.NoRecords);
            _response.OfType<IProvideDataFromLightstoneAuto>().First().ResponseStateMessage.ShouldNotBeEmpty();
        }
 public override void Observe()
 {
     _consumer = new LightstoneAutoDataProvider(_request, null, null,_command);
     _consumer.CallSource(_response);
 }