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

            result = new UserQuestionRepository(c,
                                                new EntityFrameworkRepository <Data.EF.bvc_UserQuestions>(
                                                    new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                                new EventLog()
                                                );
            return(result);
        }