public ApplicationLogService(IAgencyContext agencyContext, ICalendarService calendarService, ICanAddToContext context) { this.agencyContext = agencyContext; this.calendarService = calendarService; this.context = context; }
protected void EstablishAgencyContext() { var agency = new AgencyBuilder().Build(); System.Threading.Thread.CurrentPrincipal = agency; agencyContext = new AgencyContext(); }