pub fn for_rust_service(
        service_factory: impl ServiceFactory,
        name: impl Into<String>,
        id: InstanceId,
        constructor: impl BinaryValue,
    ) -> Self {
        let artifact = service_factory.artifact_id();
        TestKitBuilder::validator()
            .with_artifact(artifact.clone())
            .with_instance(
                artifact
                    .into_default_instance(id, name)
                    .with_constructor(constructor),
            )
            .with_rust_service(service_factory)
            .build()
    }
/// Creates a new `TestKit` with a single validator with the given Rust service.
Creates a new `TestKit` with a single validator with the given Rust service.
Creates a new ` TestKit ` with a single validator with the given Rust service .
pub fn for_rust_service(
        service_factory: impl ServiceFactory,
        name: impl Into<String>,
        id: InstanceId,
        constructor: impl BinaryValue,
    ) -> Self {
        let artifact = service_factory.artifact_id();
        TestKitBuilder::validator()
            .with_artifact(artifact.clone())
            .with_instance(
                artifact
                    .into_default_instance(id, name)
                    .with_constructor(constructor),
            )
            .with_rust_service(service_factory)
            .build()
    }
pub fn for_rust_service ( service_factory : impl ServiceFactory , name : impl Into < String > , id : InstanceId , constructor : impl BinaryValue , ) -> Self { let artifact = service_factory . artifact_id ( ) ; TestKitBuilder :: validator ( ) . with_artifact ( artifact . clone ( ) ) . with_instance ( artifact . into_default_instance ( id , name ) . with_constructor ( constructor ) , ) . with_rust_service ( service_factory ) . build ( ) }
Creates a new `TestKit` with a single validator with the given Rust service.
Creates a new ` TestKit ` with a single validator with the given Rust service .
service_factory
impl ServiceFactory
name
impl Into<String>
id
InstanceId
constructor
impl BinaryValue
service_factory
impl ServiceFactory
name
impl Into<String>
id
InstanceId
constructor
impl BinaryValue