public void Pass_Through_Object_Source() { IResolveFieldContext <object> rfc1 = null; var ffr1 = new FuncFieldResolver <object, string>(context => { rfc1 = context; return("ok"); }); ffr1.Resolve(_context); rfc1.ShouldNotBeNull(); rfc1.ShouldBeSameAs(_context); }
public async Task Pass_Through_Object_Source() { IResolveFieldContext <object> rfc1 = null; var ffr1 = new FuncFieldResolver <object, string>(context => { rfc1 = context; return("ok"); }); await ffr1.ResolveAsync(_context).ConfigureAwait(false); rfc1.ShouldNotBeNull(); rfc1.ShouldBeSameAs(_context); }