public static AffiliateReferralRepository InstantiateForMemory(RequestContext c)
        {
            AffiliateReferralRepository result = null;

            result = new AffiliateReferralRepository(c, new MemoryStrategy <Data.EF.bvc_AffiliateReferral>(PrimaryKeyType.Long), new TextLogger());
            return(result);
        }
        public static AffiliateReferralRepository InstantiateForDatabase(RequestContext c)
        {
            AffiliateReferralRepository result = null;

            result = new AffiliateReferralRepository(c,
                                                     new EntityFrameworkRepository <Data.EF.bvc_AffiliateReferral>(new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                                     new SupressLogger());
            return(result);
        }
 public static ContactService InstantiateForDatabase(RequestContext c)
 {
     return(new ContactService(c,
                               AddressRepository.InstantiateForDatabase(c),
                               PriceGroupRepository.InstantiateForDatabase(c),
                               MailingListRepository.InstantiateForDatabase(c),
                               VendorRepository.InstantiateForDatabase(c),
                               ManufacturerRepository.InstantiateForDatabase(c),
                               AffiliateRepository.InstantiateForDatabase(c),
                               AffiliateReferralRepository.InstantiateForDatabase(c)));
 }
 public ContactService(RequestContext c,
                       AddressRepository addresses,
                       PriceGroupRepository pricegroups,
                       MailingListRepository mailingLists,
                       VendorRepository vendors,
                       ManufacturerRepository manufacturers,
                       AffiliateRepository affiliates,
                       AffiliateReferralRepository affiliateReferrals)
 {
     context                 = c;
     Addresses               = addresses;
     PriceGroups             = pricegroups;
     this.MailingLists       = mailingLists;
     this.Vendors            = vendors;
     this.Manufacturers      = manufacturers;
     this.Affiliates         = affiliates;
     this.AffiliateReferrals = affiliateReferrals;
 }