Exemple #1
0
 public CompanyAccountFactory(IEmailAddressGeneratorFactory emailAddressGeneratorFactory)
     : base(
         emailAddressGeneratorFactory,
         "company.com"
         )
 {
 }
Exemple #2
0
 public SchoolAccountFactory(IEmailAddressGeneratorFactory emailAddressGeneratorFactory)
     : base(
         emailAddressGeneratorFactory,
         "school.edu"
         )
 {
 }
 /// <summary>
 /// Creates a new <see cref="AccountFactory"/> instance.
 /// </summary>
 /// <param name="emailAddressGeneratorFactory">The <see cref="IEmailAddressGeneratorFactory"/> to be used.</param>
 /// <param name="domain">The domain to be used.</param>
 protected AccountFactory(IEmailAddressGeneratorFactory emailAddressGeneratorFactory, string domain)
 {
     _emailAddressGeneratorFactory = emailAddressGeneratorFactory;
     _domain = domain;
 }