This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WorkItem : Aggregate | |
{ | |
public WorkItem(EntityId id, string description, TimeSpan retryInterval) | |
{ | |
Announce(new WorkItemCreatedEvent(id, description, retryInterval)); | |
} | |
public string Description { get; private set; } | |
public Progress Progress { get; private set; } | |
public TimeSpan RetryInterval { get; private set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IntervalComparisons | |
{ | |
[Scenario] | |
public void Linq_NoBaseClass() | |
{ | |
var result = | |
from left in "Given an interval".Of(Interval.WholeStep) | |
from right in "And a lesser interval".Of(Interval.HalfStep) | |
select "When comparing them".Do(left.CompareTo(right)); |
NewerOlder