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

HicServices / RDMP / 9545983254

17 Jun 2024 10:18AM UTC coverage: 56.915% (+0.002%) from 56.913%
9545983254

push

github

web-flow
Merge pull request #1844 from HicServices/release/8.1.7

Release/8.1.7

10819 of 20488 branches covered (52.81%)

Branch coverage included in aggregate %.

13 of 31 new or added lines in 6 files covered. (41.94%)

3 existing lines in 2 files now uncovered.

30840 of 52707 relevant lines covered (58.51%)

7421.89 hits per line

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

88.89
/Rdmp.Core/CommandExecution/AtomicCommands/ExecuteCommandSetExtractionConfigurationCohort.cs
1
// Copyright (c) The University of Dundee 2024-2024
2
// This file is part of the Research Data Management Platform (RDMP).
3
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.
6

7
using Rdmp.Core.DataExport.Data;
8
using Rdmp.Core.Icons.IconProvision;
9
using Rdmp.Core.ReusableLibraryCode.Icons.IconProvision;
10
using SixLabors.ImageSharp.PixelFormats;
11
using SixLabors.ImageSharp;
12

13
namespace Rdmp.Core.CommandExecution.AtomicCommands;
14

15
public class ExecuteCommandSetExtractionConfigurationCohort : BasicCommandExecution, IAtomicCommand
16
{
17
    private readonly ExtractionConfiguration _extractionConfiguration;
18
    private readonly ExtractableCohort _extractableCohort;
19

20
    public ExecuteCommandSetExtractionConfigurationCohort(IBasicActivateItems activator, ExtractionConfiguration extractionConfiguration, ExtractableCohort cohort) : base(activator)
4✔
21
    {
22
        _extractionConfiguration = extractionConfiguration;
4✔
23
        _extractableCohort = cohort;
4✔
24
    }
4✔
25

26

27
    public override void Execute()
28
    {
29
        base.Execute();
4✔
30
        _extractionConfiguration.Cohort_ID = _extractableCohort.ID;
4✔
31
        _extractionConfiguration.SaveToDatabase();
4✔
32
    }
2✔
33

34
    public override Image<Rgba32> GetImage(IIconProvider iconProvider) =>
NEW
35
    iconProvider.GetImage(RDMPConcept.ExtractionConfiguration, OverlayKind.None);
×
36

37
}
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

© 2026 Coveralls, Inc