public void PlayerScorePublishedEvent_CanBeCreated_IsCreated() { PlayerScorePublishedEvent playerScorePublishedEvent = PlayerScorePublishedEvent.Create(TournamentTestData.AggregateId, TournamentTestData.PlayerId, TournamentTestData.PlayingHandicap, TournamentTestData.HoleScores, TournamentTestData.GolfClubId, TournamentTestData.MeasuredCourseId, TournamentTestData.GrossScore, TournamentTestData.NetScore, TournamentTestData.CSS); playerScorePublishedEvent.ShouldNotBeNull(); playerScorePublishedEvent.AggregateId.ShouldBe(TournamentTestData.AggregateId); playerScorePublishedEvent.PlayerId.ShouldBe(TournamentTestData.PlayerId); playerScorePublishedEvent.PlayingHandicap.ShouldBe(TournamentTestData.PlayingHandicap); playerScorePublishedEvent.HoleScores.ShouldBe(TournamentTestData.HoleScores); playerScorePublishedEvent.GolfClubId.ShouldBe(TournamentTestData.GolfClubId); playerScorePublishedEvent.MeasuredCourseId.ShouldBe(TournamentTestData.MeasuredCourseId); playerScorePublishedEvent.GrossScore.ShouldBe(TournamentTestData.GrossScore); playerScorePublishedEvent.NetScore.ShouldBe(TournamentTestData.NetScore); playerScorePublishedEvent.CSS.ShouldBe(TournamentTestData.CSS); playerScorePublishedEvent.EventCreatedDateTime.ShouldNotBe(DateTime.MinValue); playerScorePublishedEvent.EventId.ShouldNotBe(Guid.Empty); }
public static PlayerScorePublishedEvent GetPlayerScorePublishedEvent() { return(PlayerScorePublishedEvent.Create(TournamentTestData.AggregateId, TournamentTestData.PlayerId, TournamentTestData.PlayingHandicap, TournamentTestData.HoleScores, TournamentTestData.GolfClubId, TournamentTestData.MeasuredCourseId, TournamentTestData.GrossScore, TournamentTestData.NetScore, TournamentTestData.CSS)); }