Пример #1
0
        public CheckResult CreateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            CheckResultReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            return this;
        }
Пример #2
0
        public void GenerateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            //don't overwrite an existing reference
            if (string.IsNullOrEmpty(EmailAddressReference))
                EmailAddressReference = referenceGenerator.CreateReference(Constants.ReferenceLength);
        }
Пример #3
0
        public Requirement CreateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            RequirementReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            return this;
        }
Пример #4
0
        public Email CreateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            EmailReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            return this;
        }
Пример #5
0
 public void GenerateReference(IReferenceGenerator referenceGenerator)
 {
     Check.If(referenceGenerator).IsNotNull();
     //don't overwrite an existing reference
     if (string.IsNullOrEmpty(PhoneNumberReference))
         // ReSharper disable once PossibleNullReferenceException
         PhoneNumberReference = referenceGenerator.CreateReference(Constants.ReferenceLength);
 }
Пример #6
0
        public User CreateReference(IReferenceGenerator referenceGenerator)
        {
            UserReference = referenceGenerator.CreateReference(Constants.Settings.ReferenceLength);

            return(this);
        }
Пример #7
0
 public ProductConfiguration CreateReference(IReferenceGenerator referenceGenerator)
 {
     ProductConfigurationReference = referenceGenerator.CreateReference(Constants.Constants.ReferenceLength);
     return(this);
 }
 public Order CreateReference(IReferenceGenerator referenceGenerator)
 {
     OrderReference = referenceGenerator.CreateReference("B-", Constants.Constants.ReferenceLength);
     return(this);
 }
Пример #9
0
        public TelephoneNumber CreateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            TelephoneNumberReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            return this;
        }
Пример #10
0
        public void GenerateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            //don't overwrite an existing reference
            if (string.IsNullOrEmpty(CallReference))
                CallReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            From.GenerateReference(referenceGenerator);
            To.GenerateReference(referenceGenerator);
        }
 public Basket CreateReference(IReferenceGenerator referenceGenerator)
 {
     BasketReference = referenceGenerator.CreateReference("B-", Constants.Constants.ReferenceLength);
     return(this);
 }
Пример #12
0
        public void GenerateReference(IReferenceGenerator referenceGenerator)
        {
            Check.If(referenceGenerator).IsNotNull();

            //don't overwrite an existing reference
            if (string.IsNullOrEmpty(EmailReference))
                EmailReference = referenceGenerator.CreateReference(Constants.ReferenceLength);

            foreach (var emailAddress in EmailEmailAddressRelationships.Select(x=>x.EmailAddress).ToList())
            {
                emailAddress.GenerateReference(referenceGenerator);
            }
        }
 public ProductComponentCompatibility CreateReference(IReferenceGenerator referenceGenerator)
 {
     ProductComponentCompatibilityReference = referenceGenerator.CreateReference("PCC-", Constants.Constants.ReferenceLength);
     return(this);
 }