public void ClubMembership_Create_IsCreated() { ClubMembership clubMembership = ClubMembership.Create(); clubMembership.ShouldNotBeNull(); clubMembership.Status.ShouldBe(ClubMembership.MembershipStatus.Pending); }
public void ClubMembership_Reject_MembershipRejected() { ClubMembership clubMembership = ClubMembership.Create(); clubMembership.Reject(PlayerTestData.GolfClubId, PlayerTestData.MembershipId, PlayerTestData.RejectionReason, PlayerTestData.MembershipRejectedDateTime); clubMembership.MembershipId.ShouldBe(PlayerTestData.MembershipId); clubMembership.MembershipNumber.ShouldBeNullOrEmpty(); clubMembership.AcceptedDateTime.ShouldBe(DateTime.MinValue); clubMembership.RejectionReason.ShouldBe(PlayerTestData.RejectionReason); clubMembership.RejectedDateTime.ShouldBe(PlayerTestData.MembershipRejectedDateTime); clubMembership.Status.ShouldBe(ClubMembership.MembershipStatus.Rejected); }