Ejemplo n.º 1
0
 public ConverterPropertyGroup(
     INumeralConverter sut,
     FSharpFunc <int, string> toNumeralImp,
     FSharpFunc <string, FSharpOption <int> > tryParseImp)
 {
     this.Sut          = sut;
     this.ToNumeralImp = toNumeralImp;
     this.TryParseImp  = tryParseImp;
 }
Ejemplo n.º 2
0
 public ConverterPropertyGroup(
     INumeralConverter sut,
     FSharpFunc<int, string> toNumeralImp,
     FSharpFunc<string, FSharpOption<int>> tryParseImp)
 {   
     this.Sut = sut;
     this.ToNumeralImp = toNumeralImp;
     this.TryParseImp = tryParseImp;
 }
Ejemplo n.º 3
0
 public IntegerSubstitutionService(IntegerMatcher integerMatcher, INumeralConverter <int, string> converter)
 {
     this.integerMatcher = integerMatcher;
     this.converter      = converter;
 }
 public void SetUp()
 {
     converter = Substitute.For <INumeralConverter <int, string> >();
     converter.Convert(Arg.Any <int>()).Returns("convertedNumeral");
     service = new IntegerSubstitutionService(IntegerMatcher.From1To3999, converter);
 }
Ejemplo n.º 5
0
 public CardinalConverter(INumeralConverter numeralConverter)
 {
     _numeralConverter = numeralConverter;
 }
Ejemplo n.º 6
0
 public Application(
     INumeralConverter numeralConverter
     )
 {
     this.numeralConverter = numeralConverter;
 }
 public void SetUp()
 {
     arabicToRomanConverter = new ArabicToRomanConverter();
     substitutionService    = new IntegerSubstitutionService(IntegerMatcher.From1To3999, arabicToRomanConverter);
 }