/// <summary> /// Creates a new IHiveManager and creates substitutes for the IContentStore /// </summary> /// <param name="hive">The hive.</param> /// <param name="readonlyEntityRepositoryGroup">The readonly entity session.</param> /// <param name="readonlySchemaRepositoryGroup">The readonly schema session.</param> /// <param name="entityRepository">The entity session.</param> /// <param name="schemaSession">The schema session.</param> /// <returns></returns> public static IHiveManager MockContentStore( this IHiveManager hive, out IReadonlyEntityRepositoryGroup <IContentStore> readonlyEntityRepositoryGroup, out IReadonlySchemaRepositoryGroup <IContentStore> readonlySchemaRepositoryGroup, out IEntityRepositoryGroup <IContentStore> entityRepository, out ISchemaRepositoryGroup <IContentStore> schemaSession) { return(hive.MockStore("content://", out readonlyEntityRepositoryGroup, out readonlySchemaRepositoryGroup, out entityRepository, out schemaSession)); }
/// <summary> /// Creates a new IHiveManager and creates substitutes for the IDictionaryStore /// </summary> /// <param name="hive">The hive.</param> /// <param name="readonlyEntityRepositoryGroup">The readonly entity session.</param> /// <param name="readonlySchemaRepositoryGroup">The readonly schema session.</param> /// <param name="entityRepository">The entity session.</param> /// <param name="schemaRepository">The schema session.</param> /// <returns></returns> public static IHiveManager MockDictionaryStore( this IHiveManager hive, out IReadonlyEntityRepositoryGroup <IDictionaryStore> readonlyEntityRepositoryGroup, out IReadonlySchemaRepositoryGroup <IDictionaryStore> readonlySchemaRepositoryGroup, out IEntityRepositoryGroup <IDictionaryStore> entityRepository, out ISchemaRepositoryGroup <IDictionaryStore> schemaRepository) { return(hive.MockStore("dictionary://", out readonlyEntityRepositoryGroup, out readonlySchemaRepositoryGroup, out entityRepository, out schemaRepository)); }