Ejemplo n.º 1
0
        public TestCaseBuilder DefaultPolicy(Action <LinksPolicyBuilder <ILinkContainer> > configurePolicy)
        {
            var builder = new LinksPolicyBuilder <ILinkContainer>();

            configurePolicy?.Invoke(builder);
            options.DefaultPolicy = builder.Build();
            return(this);
        }
 public static LinksPolicyBuilder<TResource> RequiresApiRootLink<TResource>(this LinksPolicyBuilder<TResource> builder)
     where TResource : class
 {
     return builder.Requires<ApiRootLinkRequirement>();
 }