public void FromResponseMetadataHandler() { Action <Metadata> handler = metadata => { }; var settings = CallSettings.FromResponseMetadataHandler(handler); Assert.Same(handler, settings.ResponseMetadataHandler); }
public void MergeResponseMetadataHandlers() { Action <Metadata> handler1 = metadata => { }; Action <Metadata> handler2 = metadata => { }; var settings = CallSettings.Merge( CallSettings.FromResponseMetadataHandler(handler1), CallSettings.FromResponseMetadataHandler(handler2)); Assert.Equal(handler1 + handler2, settings.ResponseMetadataHandler); }