Пример #1
0
 public ApplicationLogService(IAgencyContext agencyContext, ICalendarService calendarService, ICanAddToContext context)
 {
     this.agencyContext = agencyContext;
     this.calendarService = calendarService;
     this.context = context;
 }
Пример #2
0
 protected void EstablishAgencyContext()
 {
     var agency = new AgencyBuilder().Build();
     System.Threading.Thread.CurrentPrincipal = agency;
     agencyContext = new AgencyContext();
 }