public static void SetFactory(IAtomicContainer providerFactory)
 {
     factory = providerFactory;
 }
 public static IEnumerable<object> BuildProjectionsWithWhenConvention(IAtomicContainer factory)
 {
     yield return new RecipeProjection(factory.GetEntityWriter<RecipeId, RecipeView>());
     yield return new RecipeByNameIndexProjection(factory.GetEntityWriter<unit, RecipeByNameIndex>());
 }
        public static IEnumerable <object> BuildProjectionsWithWhenConvention(IAtomicContainer factory)
        {
            yield return(new RecipeProjection(factory.GetEntityWriter <RecipeId, RecipeView>()));

            yield return(new RecipeByNameIndexProjection(factory.GetEntityWriter <unit, RecipeByNameIndex>()));
        }
 public static void SetFactory(IAtomicContainer providerFactory)
 {
     factory = providerFactory;
 }