Closed scottjferguson closed 1 year ago
Looks good.
Fixes #120
May I ask, is there a reason why CorrelationId is not used for other statuses as well? Why only ErrorWithCorrelationId()?
I've got in mind semantics like:
var result = Result<AvailabilitySchedule>.NotFound($"Availability Schedule for part \"{partId}\" not found.")
.WithCorrelationId(correlationId);
I mean it might make sense to just have everywhere, right?
Added CorrelationId property, ErrorWithCorrelationId() factory method and unit test