/// <summary> /// Creates a new scope and sets it as the current scope. /// </summary> /// <returns>The created scope.</returns> public static FakeScope Create() { var result = new ChildScope(FakeScope.Current); FakeScope.Current = result; return(result); }
public ChildScope(FakeScope parentScope) { this.parentScope = parentScope; this.rulesField = new List <CallRuleMetadata>(); }
static FakeScope() { Current = new NullScope(); }