Beispiel #1
0
 public ChallengeTimeline(IDateTimeProvider createdAt, ChallengeDuration duration)
 {
     CreatedAt = createdAt.DateTime;
     Duration  = duration;
     StartedAt = null;
     ClosedAt  = null;
 }
Beispiel #2
0
 private ChallengeTimeline(
     DateTime createdAt,
     ChallengeDuration duration,
     DateTime?startedAt,
     DateTime?closedAt
     ) : this(createdAt, duration, startedAt)
 {
     ClosedAt = closedAt;
 }
Beispiel #3
0
 private ChallengeTimeline(DateTime createdAt, ChallengeDuration duration, DateTime?startedAt)
 {
     CreatedAt = createdAt;
     Duration  = duration;
     StartedAt = startedAt;
 }