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(); }