Example #1
0
        //private MockActualAccountData[] m_AccountActualDatas;

        //public IEnumerable<MockActualAccountData> AccountActualDatas { get { return m_AccountActualDatas; } }

        public override void Configure(IConfigSectionNode node)
        {
            base.Configure(node);

            var email = node.AttrByName(CONFIG_EMAIL_ATTR).Value;
            var cred  = new MockCredentials(email);
            var at    = new AuthenticationToken(MOCK_REALM, email);

            User = new User(cred, at, email, Rights.None);

            //var nAccounts = node[CONFIG_ACCOUNTS_SECTION];
            //configureAccounts(nAccounts);
        }
    //private MockActualAccountData[] m_AccountActualDatas;

    //public IEnumerable<MockActualAccountData> AccountActualDatas { get { return m_AccountActualDatas; } }

    public override void Configure(IConfigSectionNode node)
    {
      base.Configure(node);

      var email = node.AttrByName(CONFIG_EMAIL_ATTR).Value;
      var cred = new MockCredentials(email);
      var at = new AuthenticationToken(MOCK_REALM, email);

      User = new User(cred, at, email, Rights.None);

      //var nAccounts = node[CONFIG_ACCOUNTS_SECTION];
      //configureAccounts(nAccounts);
    }