Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
RagingKore committed May 29, 2024
1 parent a949a43 commit 28c6748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/EventStore.Plugins.Tests/PluginBaseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void comercial_plugin_is_enabled_when_licence_is_present() {
[Fact]
public void plugin_can_be_disabled_on_ConfigureServices() {
// Arrange
IPlugableComponent plugin = new NightCityPlugin() {
IPlugableComponent plugin = new NightCityPlugin(new(){ Name = Guid.NewGuid().ToString() }) {
OnConfigureServices = x => x.Disable("Disabled on ConfigureServices because I can")
};

Expand All @@ -164,7 +164,7 @@ public void plugin_can_be_disabled_on_ConfigureServices() {
[Fact]
public void plugin_can_be_disabled_on_ConfigureApplication() {
// Arrange
IPlugableComponent plugin = new NightCityPlugin() {
IPlugableComponent plugin = new NightCityPlugin(new(){ Name = Guid.NewGuid().ToString() }) {
OnConfigureApplication = x => x.Disable("Disabled on ConfigureApplication because I can")
};

Expand Down Expand Up @@ -206,7 +206,7 @@ public NightCityPlugin(PluginOptions options) : base(options) {
};
}

public NightCityPlugin() : this(new(){ Name = Guid.NewGuid().ToString() }) { }
public NightCityPlugin() : this(new()) { }

public PluginOptions Options { get; }

Expand Down

0 comments on commit 28c6748

Please sign in to comment.