Skip to content

Commit 19d4edd

Browse files
committed
Change PluginMetadata Type from slash to dot and fix related unit tests
#6
1 parent 3052656 commit 19d4edd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/FlowSynx.PluginCore/PluginMetadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ public class PluginMetadata
1111
public string? Author { get; set; }
1212
public string? Url { get; set; }
1313
public required PluginNamespace Namespace { get; set; }
14-
public string Type => $"{PrefixTypeName}.{Namespace}/{Name}";
14+
public string Type => $"{PrefixTypeName}.{Namespace}.{Name}";
1515
}

tests/FlowSynx.PluginCore.UnitTests/PluginMetadataTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void TypeProperty_ReturnsCorrectFormat()
1818
var type = metadata.Type;
1919

2020
// Assert
21-
Assert.Equal("FlowSynx.Connectors/MyPlugin", type);
21+
Assert.Equal("FlowSynx.Connectors.MyPlugin", type);
2222
}
2323

2424
[Fact]
@@ -48,7 +48,7 @@ public void Properties_AreAssignedCorrectly()
4848
Assert.Equal("DevTeam", metadata.Author);
4949
Assert.Equal("https://registry.flowsynx.io/AnalyticsPlugin/", metadata.Url);
5050
Assert.Equal(ns, metadata.Namespace);
51-
Assert.Equal("FlowSynx.Connectors/AnalyticsPlugin", metadata.Type);
51+
Assert.Equal("FlowSynx.Connectors.AnalyticsPlugin", metadata.Type);
5252
}
5353

5454
[Fact]
@@ -67,6 +67,6 @@ public void TypeProperty_HandlesDifferentNamespacesAndNames()
6767
var type = metadata.Type;
6868

6969
// Assert
70-
Assert.Equal("FlowSynx.Transformers/Processor", type);
70+
Assert.Equal("FlowSynx.Transformers.Processor", type);
7171
}
7272
}

0 commit comments

Comments
 (0)