Example #1
0
 public static MembershipServices InstantiateForDatabase(RequestContext c)
 {
     return(new MembershipServices(c,
                                   UserQuestionRepository.InstantiateForDatabase(c),
                                   CustomerAccountRepository.InstantiateForDatabase(c)
                                   ));
 }
Example #2
0
 public MembershipServices(RequestContext c,
                           UserQuestionRepository questions,
                           CustomerAccountRepository customers
                           )
 {
     context            = c;
     this.UserQuestions = questions;
     this.Customers     = customers;
 }
        public static CustomerAccountRepository InstantiateForDatabase(RequestContext c)
        {
            CustomerAccountRepository result = null;

            result = new CustomerAccountRepository(c,
                                                   new EntityFrameworkRepository <Data.EF.bvc_User>(
                                                       new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                                   new SupressLogger()
                                                   );
            return(result);
        }