public CollectionService(ICollectionsRepository repository, ITrainingRepository trainingRepository, ICardsRepository cardsRepository) { this.repository = repository; this.trainingRepository = trainingRepository; this.cardsRepository = cardsRepository; }
public DataManager(IItemsRepository items, ICollectionsRepository collections, ITagsRepository tags, ILikesRepository likes, ICommentsRepository comments) { this.Items = items; this.Collections = collections; this.Tags = tags; this.Likes = likes; this.Comments = comments; }
public void Initialize() { _cxn = new SqlConnectionWrapperMock(); _collectionRepository = new SqlCollectionsRepository(_cxn.Object); _expectedCollectionArtifacts = new List <CollectionArtifact> { new CollectionArtifact { PropertyName = "Name", PropertyTypeId = 80, PropertyTypePredefined = 4098, Prefix = "Prefix", ArtifactId = 7545, PrimitiveType = 0, ItemTypeId = 134, PredefinedType = 4107, PropertyValue = "Value_Name", ItemTypeIconId = 0 }, new CollectionArtifact { PropertyName = "Description", PropertyTypeId = 81, PropertyTypePredefined = 4099, Prefix = "Prefix", ArtifactId = 7551, PrimitiveType = 0, ItemTypeId = 132, PredefinedType = 4105, PropertyValue = "Value_Description", ItemTypeIconId = 0 } }; _propertyTypeInfos = new List <PropertyTypeInfo>() { new PropertyTypeInfo() { Id = 1, Name = "Test", Predefined = PropertyTypePredefined.ID, PrimitiveType = PropertyPrimitiveType.Number } }; }
public CollectionsService( ICollectionsRepository collectionsRepository, IArtifactRepository artifactRepository, ILockArtifactsRepository lockArtifactsRepository, IItemInfoRepository itemInfoRepository, IArtifactPermissionsRepository artifactPermissionsRepository, ISqlHelper sqlHelper, ISearchEngineService searchEngineService, IArtifactListService artifactListService) { _collectionsRepository = collectionsRepository; _artifactRepository = artifactRepository; _lockArtifactsRepository = lockArtifactsRepository; _itemInfoRepository = itemInfoRepository; _artifactPermissionsRepository = artifactPermissionsRepository; _sqlHelper = sqlHelper; _searchEngineService = searchEngineService; _artifactListService = artifactListService; }
public CollectionsService(ICollectionsRepository collectionsRepository, IMapper mapper) { _collectionsRepository = collectionsRepository; _mapper = mapper; }
public CollectionService(ICollectionsRepository repository) { this.repository = repository; }
public CollectionsService(ICollectionsRepository collectionsRepository) { this.collectionsRepository = collectionsRepository; }
public CollectionsManager(ICollectionsRepository repository) : base(repository) { }
public CollectionsResource(ICollectionsRepository collectionsRepository) { this.collectionsRepository = collectionsRepository; }
public static IQueryable <TListState> Query(ICollectionsRepository collectionsRepo) { var data = collectionsRepo.Query <TListState>(); return(data); }
public static Guid CreateRecord(ICollectionsRepository collectionsRepo, TListState state) { collectionsRepo.AddOrUpdate(state); return(state.Id); }
public static void RemoveRecord(ICollectionsRepository collectionsRepo, TListState state) { collectionsRepo.Delete(state); }
public Journal(Guid instanceId, ICollectionsRepository collectionsRepo, IEsRepository esRepo) : base(instanceId, esRepo) { this.collectionsRepo = collectionsRepo; this.OnMutationEventPushed += (e => UpdateJournalState()); }