Exemple #1
0
 public PhoneManager(ICookieProvider cookieProvider, IRepository repository, QueryStringProvider querystringProvider, ReferrerProvider referrerProvider, ISessionProvider sessionProvider, IUmbracoProvider umbracoProvider)
 {
     _cookieProvider      = cookieProvider;
     _repository          = repository;
     _querystringProvider = querystringProvider;
     _referrerProvider    = referrerProvider;
     _sessionProvider     = sessionProvider;
     _umbracoProvider     = umbracoProvider;
 }
Exemple #2
0
 public PhoneManagerAppParamHolder(CookieHolder cookieHolder, string repositoryTestPhoneManagerData, NameValueCollection queryStringCollection, string referrerString, OutputModel sessionModel, string umbracoCurrentPageId)
 {
     CookieProvider      = CookieProvider(cookieHolder).Object;
     RepositoryProvider  = Repository(repositoryTestPhoneManagerData);
     QueryStringProvider = new QueryStringProvider(QueryStringImplementation(queryStringCollection).Object);
     ReferrerProvider    = new ReferrerProvider(ReferrerImplementation(referrerString).Object);
     SessionProvider     = SessionProvider(sessionModel).Object;
     UmbracoProvider     = UmbracoProvider(umbracoCurrentPageId).Object;
 }
Exemple #3
0
 /// <summary>
 /// Processes the current request to find a relevant phone number to output
 /// </summary>
 public PhoneManager()
 {
     // default providers/repository
     _cookieProvider      = new CookieProvider(new HttpContextCookieImplementation());
     _repository          = new XPathRepository();
     _querystringProvider = new QueryStringProvider(new HttpContextQueryStringImplementation());
     _referrerProvider    = new ReferrerProvider(new HttpContextReferrerImplementation());
     _sessionProvider     = new SessionProvider();
     _umbracoProvider     = new UmbracoProvider();
 }