Exemplo n.º 1
0
 public static MembershipServices InstantiateForDatabase(RequestContext c)
 {
     return(new MembershipServices(c,
                                   UserQuestionRepository.InstantiateForDatabase(c),
                                   CustomerAccountRepository.InstantiateForDatabase(c)
                                   ));
 }
Exemplo n.º 2
0
 public MembershipServices(RequestContext c,
                           UserQuestionRepository questions,
                           CustomerAccountRepository customers
                           )
 {
     context            = c;
     this.UserQuestions = questions;
     this.Customers     = customers;
 }
Exemplo 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);
        }