Skip to content

Commit fc033c3

Browse files
committed
Add empty service metadata object
1 parent 6c5c827 commit fc033c3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Whaally.Domain.Testing/ServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ServiceTest(
2121
Service = service;
2222

2323
var id = Guid.NewGuid();
24-
Context = new ServiceHandlerContext(Services)
24+
Context = new ServiceHandlerContext(Services, new ServiceMetadata())
2525
{
2626
ParentContext = default
2727
};

src/Whaally.Domain/Service/ServiceMetadata.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ namespace Whaally.Domain;
55

66
public record ServiceMetadata : IServiceMetadata
77
{
8-
public IDictionary<string, object> Attributes { get; set; }
9-
= new Dictionary<string, object>();
8+
public IDictionary<string, object> Attributes { get; set; } = new Dictionary<string, object>();
109
public ActivityContext? ParentContext { get; set; }
1110
public DateTimeOffset CreatedAt { get; set; }
1211
public Type? ServiceType { get; set; }

0 commit comments

Comments
 (0)