public void GolfClubAggregate_CreateGolfClub_GolfClubCreated() { GolfClubAggregate aggregate = GolfClubAggregate.Create(GolfClubTestData.AggregateId); aggregate.CreateGolfClub(GolfClubTestData.Name, GolfClubTestData.AddressLine1, GolfClubTestData.AddressLine2, GolfClubTestData.Town, GolfClubTestData.Region, GolfClubTestData.PostalCode, GolfClubTestData.TelephoneNumber, GolfClubTestData.Website, GolfClubTestData.EmailAddress); aggregate.ShouldNotBeNull(); aggregate.AggregateId.ShouldBe(GolfClubTestData.AggregateId); aggregate.Name.ShouldBe(GolfClubTestData.Name); aggregate.AddressLine1.ShouldBe(GolfClubTestData.AddressLine1); aggregate.AddressLine2.ShouldBe(GolfClubTestData.AddressLine2); aggregate.Town.ShouldBe(GolfClubTestData.Town); aggregate.Region.ShouldBe(GolfClubTestData.Region); aggregate.PostalCode.ShouldBe(GolfClubTestData.PostalCode); aggregate.TelephoneNumber.ShouldBe(GolfClubTestData.TelephoneNumber); aggregate.Website.ShouldBe(GolfClubTestData.Website); aggregate.EmailAddress.ShouldBe(GolfClubTestData.EmailAddress); aggregate.HasBeenCreated.ShouldBeTrue(); }
public void GolfClubAggregate_CanBeCreated_IsCreated() { GolfClubAggregate aggregate = GolfClubAggregate.Create(GolfClubTestData.AggregateId); aggregate.ShouldNotBeNull(); aggregate.AggregateId.ShouldBe(GolfClubTestData.AggregateId); }