예제 #1
0
 public CollectionService(ICollectionsRepository repository, ITrainingRepository trainingRepository,
                          ICardsRepository cardsRepository)
 {
     this.repository         = repository;
     this.trainingRepository = trainingRepository;
     this.cardsRepository    = cardsRepository;
 }
예제 #2
0
 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
                }
            };
        }
예제 #4
0
 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;
 }
예제 #6
0
 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;
 }
예제 #10
0
 public CollectionsResource(ICollectionsRepository collectionsRepository)
 {
     this.collectionsRepository = collectionsRepository;
 }
예제 #11
0
        public static IQueryable <TListState> Query(ICollectionsRepository collectionsRepo)
        {
            var data = collectionsRepo.Query <TListState>();

            return(data);
        }
예제 #12
0
 public static Guid CreateRecord(ICollectionsRepository collectionsRepo, TListState state)
 {
     collectionsRepo.AddOrUpdate(state);
     return(state.Id);
 }
예제 #13
0
 public static void RemoveRecord(ICollectionsRepository collectionsRepo, TListState state)
 {
     collectionsRepo.Delete(state);
 }
예제 #14
0
        public Journal(Guid instanceId, ICollectionsRepository collectionsRepo, IEsRepository esRepo) : base(instanceId, esRepo)
        {
            this.collectionsRepo = collectionsRepo;

            this.OnMutationEventPushed += (e => UpdateJournalState());
        }