Exemplo n.º 1
0
 public TestApplication Reset()
 {
     _antiForgeryRequestTokens = null;
     User = _originalUser;
     ReplacableServiceProvider.Reset();
     return(this);
 }
Exemplo n.º 2
0
        public AntiForgeryRequestTokens GetAntiForgeryTokens()
        {
            if (_antiForgeryRequestTokens == null)
            {
                _antiForgeryRequestTokens = AntiForgeryRequestTokens.GetFromApplication(this);
            }

            return(_antiForgeryRequestTokens);
        }