示例#1
0
 public FizzBuzzTests()
 {
     Debug.WriteLine("ctor called.");
     _fizzRules     = new FizzRules();
     _fizzRulesMock = Substitute.For <IFizzRules>();
     _fizzBuzz      = new FizzBuzz(_fizzRulesMock);
 }
示例#2
0
 public FizzBuzz(IFizzRules fizzRules)
 {
     _fizzRules = fizzRules;
 }