-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dataset PR
- Loading branch information
Showing
106 changed files
with
4,210 additions
and
2,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
320 changes: 155 additions & 165 deletions
320
Application/ResearchDataManagementPlatform/WindowManagement/TopBar/RDMPTaskBarUI.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Rdmp.Core.Tests/CommandExecution/ExecuteCommandCreateDatasetTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
| ||
using NUnit.Framework; | ||
using Rdmp.Core.CommandExecution.AtomicCommands; | ||
using System; | ||
using System.Linq; | ||
using Rdmp.Core.CommandExecution; | ||
|
||
namespace Rdmp.Core.Tests.CommandExecution; | ||
|
||
public class ExecuteCommandCreateDatasetTests : CommandCliTests | ||
{ | ||
[Test] | ||
public void TestDatasetCreationOKParameters() { | ||
var cmd = new ExecuteCommandCreateDataset(GetMockActivator(),"dataset"); | ||
Assert.DoesNotThrow(()=>cmd.Execute()); | ||
} | ||
|
||
[Test] | ||
public void TestDatasetCreationNoParameters() | ||
{ | ||
var cmd = new ExecuteCommandCreateDataset(GetMockActivator(), null); | ||
Assert.Throws<ImpossibleCommandException>(cmd.Execute); | ||
} | ||
|
||
[Test] | ||
public void TestDatasetCreationOKExtendedParameters() | ||
{ | ||
var cmd = new ExecuteCommandCreateDataset(GetMockActivator(), "dataset2","somedoi","some source"); | ||
Assert.DoesNotThrow(cmd.Execute); | ||
var founddataset = GetMockActivator().RepositoryLocator.CatalogueRepository.GetAllObjects<Rdmp.Core.Curation.Data.Dataset>().Where(ds => ds.Name == "dataset2" && ds.DigitalObjectIdentifier == "somedoi" && ds.Source == "some source").First(); | ||
Assert.That(founddataset,Is.Not.Null); | ||
} | ||
} |
Oops, something went wrong.