Snooze.Testing.FakeHttpRequest.this C# (CSharp) Method

this() public method

public this ( string key ) : string
key string
return string
        public override string this[string key]
        {
            get
            {
                if (_queryString != null)
                {
                    var result = _queryString[key];
                    if (result != null)
                        return result;
                }

                if (_form != null)
                {
                    var result = _form[key];
                    if (result != null)
                        return result;
                }

                if(_cookies!=null)
                {
                    var httpCookie = _cookies[key];
                    if (httpCookie != null)
                        return httpCookie.Value;
                }

                if(_serverVariables!=null)
                {
                    var result = _serverVariables[key];
                    if(result!=null)
                        return result;
                }

                return null;
            }
        }