public void AddPartnerDetails_SetsRelationshipAutomatically()
        {
            var form = new BestStartGrantBuilder("form").Insert();

            form.AddPartnerDetails(RelationDetailsBuilder.NewValid(rd => rd.RelationshipToApplicant = null));

            form.PartnerDetails.RelationshipToApplicant.Should().Be("Partner");
        }
        public void AddPartnerDetails_AllowsAddressToBeInherited()
        {
            var form = new BestStartGrantBuilder("form")
                       .With(f => f.PartnerDetails, RelationDetailsBuilder.NewValid())
                       .Insert();

            var inheritedDetails = RelationDetailsBuilder.NewValid(rd =>
            {
                rd.InheritAddress = true;
                rd.Address        = null;
            });

            form.AddPartnerDetails(inheritedDetails);

            form.PartnerDetails.InheritAddress.Should().BeTrue();
            form.PartnerDetails.Address.Should().BeNull();
        }