Example #1
0
 public ForClassElseEndIf <T, ForClassEndIf <T, ENDIF> > If(Expression <Func <T, bool> > conditionalExpression)
 {
     return(BuilderHelper.CreateIf <T, ForClassEndIf <T, ENDIF> >(_fluentScope, conditionalExpression));
 }
Example #2
0
 public ENDIF EndIf()
 {
     return(BuilderHelper.CreateEndIf <ENDIF>(_fluentScope));
 }
Example #3
0
 public SetupClassEndIf <T, R, ENDIF> MustPassRule(IRule <T> rule)
 {
     return(BuilderHelper.CreateMustPassRule <T, SetupClassEndIf <T, R, ENDIF> >(rule, _fluentScope, true));
 }
Example #4
0
 public SetupClassEndIf <T, R1, ENDIF> Setup <R1>(Expression <Func <T, R1> > expression)
 {
     return(BuilderHelper.CreateSetupNode <SetupClassEndIf <T, R1, ENDIF> >(this, expression));
 }
 public SetupClass <T, R> MustPassRule(IRule <R> rule)
 {
     return(BuilderHelper.CreateMustPassRule <R, SetupClass <T, R> >(rule, _fluentScope, false));
 }
 public SetupClass <T, R> Blame <T1, R1>(Expression <Func <T, T1> > culpritObjectExpression, Expression <Func <T1, R1> > culpritExpression)
 {
     return(BuilderHelper.SetBlame(this, culpritObjectExpression, culpritExpression));
 }
 public ForClassEndIf <T, ENDIF> Else()
 {
     return(BuilderHelper.CreateElseNode <ForClassEndIf <T, ENDIF> >(_fluentScope));
 }
 public SetupClassElseEndIf <T, R, ENDIF> MustPassRule(IRule <R> rule)
 {
     return(BuilderHelper.CreateMustPassRule <R, SetupClassElseEndIf <T, R, ENDIF> >(rule, _fluentScope, false));
 }
Example #9
0
 public ForClass <T> MustPassRule(IRule <T> rule)
 {
     return(BuilderHelper.CreateMustPassRule <T, ForClass <T> >(rule, _fluentScope, true));
 }
Example #10
0
 public SetupClass <T, R> Setup <R>(Expression <Func <T, R> > expression)
 {
     return(BuilderHelper.CreateSetupNode <SetupClass <T, R> >(this, expression));
 }
 public ForClassElseEndIf <T, ENDIF> MustPassRule(IRule <T> rule)
 {
     return(BuilderHelper.CreateMustPassRule <T, ForClassElseEndIf <T, ENDIF> >(rule, _fluentScope, true));
 }