Example #1
0
 public static ExpectationExpression Has <TSecurityPolicy>(this ExpectationExpression expectationExpression) where TSecurityPolicy : class, ISecurityPolicy
 {
     return(expectationExpression.Add(new HasTypeExpectation <TSecurityPolicy>()));
 }
Example #2
0
 public static ExpectationExpression DoesNotHave <TSecurityPolicy>(this ExpectationExpression expectationExpression, TSecurityPolicy instance) where TSecurityPolicy : ISecurityPolicy
 {
     return(expectationExpression.Add(new DoesNotHaveInstanceExpectation(instance)));
 }
Example #3
0
 public static ExpectationExpression DoesNotHave <TSecurityPolicy>(this ExpectationExpression expectationExpression) where TSecurityPolicy : class, ISecurityPolicy
 {
     return(expectationExpression.Add(new DoesNotHaveTypeExpectation <TSecurityPolicy>()));
 }
Example #4
0
 public static ExpectationExpression DoesNotHave <TSecurityPolicy>(this ExpectationExpression expectationExpression, Expression <Func <TSecurityPolicy, bool> > predicate) where TSecurityPolicy : class, ISecurityPolicy
 {
     return(expectationExpression.Add(new DoesNotHaveTypeExpectation <TSecurityPolicy>(predicate)));
 }
Example #5
0
 public static ExpectationExpression Has <TSecurityPolicy>(this ExpectationExpression expectationExpression, TSecurityPolicy instance) where TSecurityPolicy : ISecurityPolicy
 {
     return(expectationExpression.Add(new HasInstanceExpectation(instance)));
 }