示例#1
0
        public static CallbackMonitor <GraphQLHttpClient> ConfigureMonitorForOnWebsocketConnected(
            this GraphQLHttpClient client)
        {
            var tester = new CallbackMonitor <GraphQLHttpClient>();

            client.Options.OnWebsocketConnected = c => {
                tester.Invoke(c);
                return(Task.CompletedTask);
            };
            return(tester);
        }
示例#2
0
 public CallbackAssertions(CallbackMonitor <TPayload> tester)
 {
     Subject = tester;
 }
示例#3
0
 public CallbackAssertions(CallbackMonitor <TPayload> tester) : base(tester)
 {
 }