using Fleet.Rpc; namespace Fleet.Tests; /// 测试里用的方法声明:除非另有说明,方法都由拨号方发给监听方。 internal static class TestTables { public static MethodTable Of(params MethodSpec[] specs) => new(specs); public static MethodSpec Req(string name, RpcSide from = RpcSide.Dialer) => MethodSpec.Request(name, from); public static MethodSpec Note(string name, RpcSide from = RpcSide.Dialer) => MethodSpec.Notification(name, from); }