Пример #1
0
 public DataAccessComponent(AuthorizedIdent ident)
 {
     DataProviderFactory.GetInstance(this);
     m_ident = ident;
 }
Пример #2
0
 public Submissions(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #3
0
 public Principals(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #4
0
 public Groups(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #5
0
 public Rubrics(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #6
0
 public AutoJobs(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #7
0
 public ZoneService(string prefix, AuthorizedIdent ident, TestLogger logger)
 {
     m_prefix = prefix;
     m_ident = ident;
     m_logger = logger;
 }
Пример #8
0
 public Assignments(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #9
0
 public Backups(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #10
0
 public DependencyGraph(Evaluation eval, AuthorizedIdent ident)
 {
     m_eval = eval; m_ident = ident;
 }
Пример #11
0
 public EmailWizard(AuthorizedIdent ident)
 {
     m_ident = ident;
 }
Пример #12
0
 public Evaluations(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #13
0
 public Activities(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #14
0
 public Results(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #15
0
 public Courses(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #16
0
 public bool Authenticate(string username, string password)
 {
     //Run auth through the auth svc to get an identity
     AuthenticateService authsvc = new AuthenticateService();
     try {
         authsvc.Url = String.Format("http://{0}/FrontDeskServices/authsvc.asmx",
             TestConfig.AuthenticationAddress);
         Authentication.ServiceTicket tik = authsvc.Authenticate(username, password);
         FrontDesk.Services.ServiceTicket ticket = new FrontDesk.Services.ServiceTicket();
         ticket.HostAddress = tik.HostAddress;
         ticket.Username = tik.Username;
         ticket.Ident = tik.Ident;
         m_ident = AuthorizedIdent.Create(ticket);
         if (m_ident != null) {
             m_logger.Log("Authentication for: " + username +
                 " succeeded.");
             return true;
         }
         else {
             m_logger.Log("Authentication for: " + username +
                 " failed.", TestLogger.LogType.ERROR);
             return false;
         }
     } catch (Exception er) {
         m_logger.Log("Error during authentication: MESSAGE: " + er.Message,
             TestLogger.LogType.ERROR);
         return false;
     }
 }
Пример #17
0
 public Users(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #18
0
 public Settings(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #19
0
 public Announcements(AuthorizedIdent ident)
     : base(ident)
 {
 }
Пример #20
0
 public Sections(AuthorizedIdent ident)
     : base(ident)
 {
 }