public TheIncredibleHulk(FibonacciSequenceModel model)
 {
     WordModel = model;
 }
Beispiel #2
0
 public IronMan(FibonacciSequenceModel model)
 {
     WordModel = model;
 }
 public SantaEncrypter(FibonacciSequenceModel model)
 {
     _fiboModel = model;
 }
 public static IEncrypter GetCorrespondingEncrypter(string algorithmName, FibonacciSequenceModel listFibonacciSequenceModel)
 {
     if (algorithmName.ToLower().Equals("theincrediblehulk"))
     {
         return new TheIncredibleHulk(listFibonacciSequenceModel);
     }
     if (algorithmName.ToLower().Equals("captainamerica"))
     {
         return new CaptainAmerica(listFibonacciSequenceModel);
     }
     if (algorithmName.ToLower().Equals("thor"))
     {
         return new Thor(listFibonacciSequenceModel);
     }
     return new IronMan(listFibonacciSequenceModel);
 }
Beispiel #5
0
 public Thor(FibonacciSequenceModel model)
 {
     WordModel = model;
     SetPreviousFibonacciSequence((int)WordModel.StartingFibonacciNumber);
 }