Skip to content

Commit 0248eb5

Browse files
committed
Delete PluginVersion class and replace it with Build-In Version class
#22
1 parent c1fc444 commit 0248eb5

5 files changed

Lines changed: 6 additions & 249 deletions

File tree

src/PluginMetadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public required string Name
3636
/// <summary>
3737
/// Gets or sets the version of the plugin.
3838
/// </summary>
39-
public required PluginVersion Version { get; set; }
39+
public required Version Version { get; set; }
4040

4141
/// <summary>
4242
/// Gets or sets the name of the company that created the plugin.

src/PluginVersion.cs

Lines changed: 0 additions & 135 deletions
This file was deleted.

tests/PluginMetadataTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void TypeProperty_ReturnsCorrectFormat()
1010
{
1111
Id = Guid.NewGuid(),
1212
Name = "MyPlugin",
13-
Version = new PluginVersion(1, 0, 0),
13+
Version = new Version(1, 0, 0),
1414
Category = PluginCategory.Api,
1515
CompanyName = "Test",
1616
MinimumFlowSynxVersion = new Version(1, 0, 0)
@@ -28,7 +28,7 @@ public void Properties_AreAssignedCorrectly()
2828
{
2929
// Arrange
3030
var id = Guid.NewGuid();
31-
var version = new PluginVersion(1, 2, 3);
31+
var version = new Version(1, 2, 3);
3232
var category = PluginCategory.Api;
3333

3434
var metadata = new PluginMetadata
@@ -63,7 +63,7 @@ public void TypeProperty_HandlesDifferentNamespacesAndNames()
6363
{
6464
Id = Guid.NewGuid(),
6565
Name = "Processor",
66-
Version = new PluginVersion(0, 1, 1),
66+
Version = new Version(0, 1, 1),
6767
Category = PluginCategory.AI,
6868
CompanyName = "Test",
6969
MinimumFlowSynxVersion = new Version(1, 0, 0)

tests/PluginTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Metadata_IsNotNullAndHasCorrectValues()
2727
// Assert
2828
Assert.NotNull(plugin.Metadata);
2929
Assert.Equal("FakePlugin", plugin.Metadata.Name);
30-
Assert.Equal(new PluginVersion(1, 0, 0), plugin.Metadata.Version);
30+
Assert.Equal(new Version(1, 0, 0), plugin.Metadata.Version);
3131
Assert.Equal("Test", plugin.Metadata.Authors[0]);
3232
}
3333

@@ -98,7 +98,7 @@ public FakePlugin()
9898
{
9999
Id = Guid.NewGuid(),
100100
Name = "FakePlugin",
101-
Version = new PluginVersion(1, 0, 0),
101+
Version = new Version(1, 0, 0),
102102
Category = PluginCategory.Api,
103103
Authors = new List<string> { "Test" },
104104
CompanyName = "Test",

tests/PluginVersionTests.cs

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)