• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HicServices / RDMP / 16070364333

04 Jul 2025 09:17AM UTC coverage: 57.436% (+0.1%) from 57.314%
16070364333

Pull #2205

github

JFriel
fix mimio tests
Pull Request #2205: Multi-Project Catalogues

11417 of 21416 branches covered (53.31%)

Branch coverage included in aggregate %.

97 of 140 new or added lines in 16 files covered. (69.29%)

32 existing lines in 4 files now uncovered.

32390 of 54855 relevant lines covered (59.05%)

17588.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.74
/Rdmp.Core/DataExport/Data/ExtractableDataSetProject.cs
1
using Rdmp.Core.Curation.Data;
2
using Rdmp.Core.MapsDirectlyToDatabaseTable;
3
using Rdmp.Core.Repositories;
4
using System;
5
using System.Collections.Generic;
6
using System.Data.Common;
7
using System.Linq;
8
using System.Text;
9
using System.Threading.Tasks;
10

11
namespace Rdmp.Core.DataExport.Data
12
{
13
    /// <summary>
14
    /// Used in a one-to-many relationship for the proejcts that are associated with a certain extractable dataset
15
    /// </summary>
16
    public class ExtractableDataSetProject : DatabaseEntity
17
    {
18
        #region Database Properties
19
        private int _projectID;
20
        private int _extractableDataSetID;
21

22
        public int Project_ID
23
        {
24
            get => _projectID;
26,008✔
25
            set => SetField(ref _projectID, value);
49,028✔
26
        }
27

28
        public int ExtractableDataSet_ID
29
        {
30
            get => _extractableDataSetID;
148✔
31
            set => SetField(ref _extractableDataSetID, value);
49,028✔
32
        }
33
        #endregion
34
        #region Relationships
35
        [NoMappingToDatabase]
36
        public IProject Project => Repository.GetObjectByID<Project>(_projectID);
42✔
37

38
        [NoMappingToDatabase]
39
        public ExtractableDataSet DataSet=> Repository.GetObjectByID<ExtractableDataSet>(_extractableDataSetID);
1,528✔
40
        #endregion
41

NEW
42
        public ExtractableDataSetProject() { }
×
43

44
        public ExtractableDataSetProject(IDataExportRepository repository, ExtractableDataSet eds, IProject project)
48✔
45
        {
46
            Repository = repository;
48✔
47
            Repository.InsertAndHydrate(this, new Dictionary<string, object>
48✔
48
        {
48✔
49
            { "Project_ID", project.ID},
48✔
50
            { "ExtractableDataSet_ID", eds.ID }
48✔
51
        });
48✔
52
        }
48✔
53

54
        internal ExtractableDataSetProject(IDataExportRepository repository, DbDataReader r) : base(repository, r)
48,980✔
55
        {
56
            Project_ID = int.Parse(r["Project_ID"].ToString());
48,980✔
57
            ExtractableDataSet_ID = int.Parse(r["ExtractableDataSet_ID"].ToString());
48,980✔
58
        }
48,980✔
59
    }
60
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc