diff --git a/src/Man.Dapr.Sidekick/Options/DaprOptions.cs b/src/Man.Dapr.Sidekick/Options/DaprOptions.cs index b951dc8..22e09ba 100644 --- a/src/Man.Dapr.Sidekick/Options/DaprOptions.cs +++ b/src/Man.Dapr.Sidekick/Options/DaprOptions.cs @@ -11,13 +11,13 @@ public DaprOptions() LogLevel = Process.DaprProcessLogger.DebugLevel; } - public DaprSidecarOptions Sidecar { get; set; } + public DaprSidecarOptions Sidecar { get; set; } = new(); - public DaprPlacementOptions Placement { get; set; } + public DaprPlacementOptions Placement { get; set; } = new(); - public DaprSchedulerOptions Scheduler { get; set; } + public DaprSchedulerOptions Scheduler { get; set; } = new(); - public DaprSentryOptions Sentry { get; set; } + public DaprSentryOptions Sentry { get; set; } = new(); /// /// Creates a deep clone of this instance. diff --git a/tests/Man.Dapr.Sidekick.Tests/Process/DaprPlacementProcessTests.cs b/tests/Man.Dapr.Sidekick.Tests/Process/DaprPlacementProcessTests.cs index 21cf5db..be5ac31 100644 --- a/tests/Man.Dapr.Sidekick.Tests/Process/DaprPlacementProcessTests.cs +++ b/tests/Man.Dapr.Sidekick.Tests/Process/DaprPlacementProcessTests.cs @@ -16,7 +16,7 @@ public void Should_create_placement_section_if_null() var p = new MockDaprPlacementProcess(); var options = new DaprOptions(); - Assert.That(options.Placement, Is.Null); + Assert.That(options.Placement, Is.Not.Null); var newOptions = p.GetProcessOptions(options); Assert.That(newOptions, Is.Not.Null); diff --git a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSchedulerProcessTests.cs b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSchedulerProcessTests.cs index 66453e6..f21f4c1 100644 --- a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSchedulerProcessTests.cs +++ b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSchedulerProcessTests.cs @@ -15,7 +15,7 @@ public void Should_create_scheduler_section_if_null() var p = new MockDaprSchedulerProcess(); var options = new DaprOptions(); - Assert.That(options.Scheduler, Is.Null); + Assert.That(options.Scheduler, Is.Not.Null); var newOptions = p.GetProcessOptions(options); Assert.That(newOptions, Is.Not.Null); diff --git a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSentryProcessTests.cs b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSentryProcessTests.cs index 54578ce..35951b7 100644 --- a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSentryProcessTests.cs +++ b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSentryProcessTests.cs @@ -15,7 +15,7 @@ public void Should_create_sentry_section_if_null() var p = new MockDaprSentryProcess(); var options = new DaprOptions(); - Assert.That(options.Sentry, Is.Null); + Assert.That(options.Sentry, Is.Not.Null); var newOptions = p.GetProcessOptions(options); Assert.That(newOptions, Is.Not.Null); diff --git a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSidecarProcessTests.cs b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSidecarProcessTests.cs index 4ba1912..33548ef 100644 --- a/tests/Man.Dapr.Sidekick.Tests/Process/DaprSidecarProcessTests.cs +++ b/tests/Man.Dapr.Sidekick.Tests/Process/DaprSidecarProcessTests.cs @@ -17,7 +17,7 @@ public void Should_assign_defaults() var p = new MockDaprSidecarProcess(); var options = new DaprOptions(); - Assert.That(options.Sidecar, Is.Null); + Assert.That(options.Sidecar, Is.Not.Null); var newOptions = p.GetProcessOptions(options); Assert.That(newOptions, Is.Not.Null);