fn start_inc_service(testkit: &mut TestKit) -> InstanceState {
    let keypair = testkit.us().service_keypair();
    // Start `inc` service instance
    execute_transaction(
        testkit,
        ConfigPropose::immediate(0)
            .start_service(
                IncService.artifact_id(),
                IncService::INSTANCE_NAME,
                Vec::default(),
            )
            .sign_for_supervisor(keypair.0, &keypair.1),
    )
    .expect("Start service transaction should be processed");
    // Get started service instance ID.
    testkit
        .snapshot()
        .for_dispatcher()
        .get_instance(IncService::INSTANCE_NAME)
        .unwrap()
}
/// Starts service instance and gets its ID
Starts service instance and gets its ID
Starts service instance and gets its ID
fn start_inc_service(testkit: &mut TestKit) -> InstanceState {
    let keypair = testkit.us().service_keypair();
    // Start `inc` service instance
    execute_transaction(
        testkit,
        ConfigPropose::immediate(0)
            .start_service(
                IncService.artifact_id(),
                IncService::INSTANCE_NAME,
                Vec::default(),
            )
            .sign_for_supervisor(keypair.0, &keypair.1),
    )
    .expect("Start service transaction should be processed");
    // Get started service instance ID.
    testkit
        .snapshot()
        .for_dispatcher()
        .get_instance(IncService::INSTANCE_NAME)
        .unwrap()
}
fn start_inc_service ( testkit : & mut TestKit ) -> InstanceState { let keypair = testkit . us ( ) . service_keypair ( ) ; // Start `inc` service instance execute_transaction ( testkit , ConfigPropose :: immediate ( 0 ) . start_service ( IncService . artifact_id ( ) , IncService :: INSTANCE_NAME , Vec :: default ( ) , ) . sign_for_supervisor ( keypair . 0 , & keypair . 1 ) , ) . expect ( " " ) ; // Get started service instance ID. testkit . snapshot ( ) . for_dispatcher ( ) . get_instance ( IncService :: INSTANCE_NAME ) . unwrap ( ) }
Starts service instance and gets its ID
Starts service instance and gets its ID
testkit
&mut TestKit
testkit
&mut TestKit