public void TournamentCancelledEvent_CanBeCreated_IsCreated() { TournamentCancelledEvent tournamentCancelledEvent = TournamentCancelledEvent.Create(TournamentTestData.AggregateId, TournamentTestData.CancelledDateTime, TournamentTestData.CancellationReason); tournamentCancelledEvent.ShouldNotBeNull(); tournamentCancelledEvent.AggregateId.ShouldBe(TournamentTestData.AggregateId); tournamentCancelledEvent.CancelledDate.ShouldBe(TournamentTestData.CancelledDateTime); tournamentCancelledEvent.CancellationReason.ShouldBe(TournamentTestData.CancellationReason); tournamentCancelledEvent.EventCreatedDateTime.ShouldNotBe(DateTime.MinValue); tournamentCancelledEvent.EventId.ShouldNotBe(Guid.Empty); }
public static TournamentCancelledEvent GetTournamentCancelledEvent() { return(TournamentCancelledEvent.Create(TournamentTestData.AggregateId, TournamentTestData.CancelledDateTime, TournamentTestData.CancellationReason)); }