Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach committed Mar 12, 2024
1 parent b0c17d9 commit ab09a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 3 additions & 8 deletions src/ServiceControl.Monitoring.AcceptanceTests/AcceptanceTest.cs
Expand Up @@ -62,16 +62,11 @@ public void Teardown()
Trace.Listeners.Remove(textWriterTraceListener);
}

protected IScenarioWithEndpointBehavior<T> Define<T>() where T : ScenarioContext, new()
{
return Define<T>(c => { });
}
protected IScenarioWithEndpointBehavior<T> Define<T>() where T : ScenarioContext, new() => Define<T>(c => { });

protected IScenarioWithEndpointBehavior<T> Define<T>(Action<T> contextInitializer) where T : ScenarioContext, new()
{
return Scenario.Define(contextInitializer)
protected IScenarioWithEndpointBehavior<T> Define<T>(Action<T> contextInitializer) where T : ScenarioContext, new() =>
Scenario.Define(contextInitializer)
.WithComponent(serviceControlRunnerBehavior);
}

protected Action<EndpointConfiguration> CustomConfiguration = _ => { };
protected Action<Settings> SetSettings = _ => { };
Expand Down
Expand Up @@ -88,10 +88,7 @@ await Define<TestContext>(ctx => context = ctx)

class MonitoredEndpoint : EndpointConfigurationBuilder
{
public MonitoredEndpoint()
{
EndpointSetup<DefaultServer>();
}
public MonitoredEndpoint() => EndpointSetup<DefaultServer>();
}

class TestContext : ScenarioContext
Expand Down

0 comments on commit ab09a43

Please sign in to comment.