public Simila(SimilaType constructionType, float?treshold) { WordMistakeRepository = new BuiltInWordMistakeRepository(); CharacterMistakeRepository = new BuiltInCharacterMistakeRepository(); if (treshold.HasValue) { Treshold = treshold.Value; } switch (constructionType) { case SimilaType.Automatic: Resolver = GetDefalutResolver(); break; case SimilaType.Manual: Resolver = new UnityContainer(); break; default: throw new Exception(string.Format("Unknown SimilaType: {0}", constructionType.ToString())); } SetStringComparisonOptions(StringComparisonOptions.None); }
public Simila(SimilaType constructionType) : this(constructionType, null) { }