Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceFactory"/> class.
 /// </summary>
 /// <param name="nodeRepository">The node repository.</param>
 /// <param name="propertyTypeRepository">The property type repository.</param>
 /// <param name="documentTypeRepository">The document type repository.</param>
 /// <remarks></remarks>
 public ResourceFactory(IUmbracoNodeRepository nodeRepository, IUmbracoPropertyTypeRepository propertyTypeRepository,
     IUmbracoDocumentTypeRepository documentTypeRepository)
 {
     _nodeRepository = nodeRepository;
     _propertyTypeRepository = propertyTypeRepository;
     _documentTypeRepository = documentTypeRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyTypeFactory"/> class.
 /// </summary>
 /// <remarks></remarks>
 public PropertyTypeFactory(IUmbracoPropertyTypeRepository propertyTypeRepository)
 {
     _propertyTypeRepository = propertyTypeRepository;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OntologyFactory"/> class.
 /// </summary>
 /// <param name="documentTypeRepository">The umbraco document type repository.</param>
 /// <param name="propertyTypeRepository">The umbraco property type repository.</param>
 /// <remarks></remarks>
 public OntologyFactory(IUmbracoDocumentTypeRepository documentTypeRepository,
     IUmbracoPropertyTypeRepository propertyTypeRepository)
 {
     _documentTypeRepository = documentTypeRepository;
     _propertyTypeFactory = new PropertyTypeFactory(propertyTypeRepository);
 }