pub fn with_xnet_state(subnet_count: u8) -> Self {
        let state_manager = Arc::new(FakeStateManager::new());
        let tls_handshake = Arc::new(FakeTlsHandshake::new());

        let (payloads, expected_indices) = get_xnet_state_for_testing(&*state_manager);
        let (registry, _) = get_registry_and_urls_for_test(subnet_count, expected_indices);

        PayloadBuilderTestFixture {
            state_manager,
            tls_handshake,
            registry,
            validation_context: get_validation_context_for_test(),
            metrics: MetricsRegistry::new(),

            payloads,
        }
    }
/// Creates a fixture with state provided by `get_xnet_state_for_testing()`,
/// and registry entries plus matching URLs for the given number of subnets.
Creates a fixture with state provided by `get_xnet_state_for_testing()`,
and registry entries plus matching URLs for the given number of subnets.
Creates a fixture with state provided by ` get_xnet_state_for_testing () ` and registry entries plus matching URLs for the given number of subnets .
pub fn with_xnet_state(subnet_count: u8) -> Self {
        let state_manager = Arc::new(FakeStateManager::new());
        let tls_handshake = Arc::new(FakeTlsHandshake::new());
        let (payloads, expected_indices) = get_xnet_state_for_testing(&*state_manager);
        let (registry, _) = get_registry_and_urls_for_test(subnet_count, expected_indices);
        PayloadBuilderTestFixture {
            state_manager,
            tls_handshake,
            registry,
            validation_context: get_validation_context_for_test(),
            metrics: MetricsRegistry::new(),
            payloads,
        }
    }
pub fn with_xnet_state ( subnet_count : u8 ) -> Self { let state_manager = Arc :: new ( FakeStateManager :: new ( ) ) ; let tls_handshake = Arc :: new ( FakeTlsHandshake :: new ( ) ) ; let ( payloads , expected_indices ) = get_xnet_state_for_testing ( & * state_manager ) ; let ( registry , _ ) = get_registry_and_urls_for_test ( subnet_count , expected_indices ) ; PayloadBuilderTestFixture { state_manager , tls_handshake , registry , validation_context : get_validation_context_for_test ( ) , metrics : MetricsRegistry :: new ( ) , payloads , } }
Creates a fixture with state provided by `get_xnet_state_for_testing()`,
and registry entries plus matching URLs for the given number of subnets.
Creates a fixture with state provided by ` get_xnet_state_for_testing () ` and registry entries plus matching URLs for the given number of subnets .
subnet_count
u8
subnet_count
u8