Exemplo n.º 1
0
        public ViewResolver(IManifest manifest, IVariantProvider variantProvider, IScoreEvaluator scoreEvaluator)
        {
            _manifest        = manifest;
            _variantProvider = variantProvider;
            _scoreEvaluator  = scoreEvaluator;

            ValidateManifest();
        }
Exemplo n.º 2
0
 public static VariantSet GetVariantsNamed(this IVariantProvider This, IEnumerable <string> names) =>
 This.AllVariantGroups
 .SelectMany(x => x.Variants)
 .Where(x => names.Contains(x.Name))
 .ToVariantSet();
Exemplo n.º 3
0
 public static IVariant GetVariantNamed(this IVariantProvider This, string name) =>
 This.AllVariantGroups
 .SelectMany(x => x.Variants)
 .FirstOrDefault(x => x.Name == name);