Esempio n. 1
0
        public void A_Parameter_Is_Removed_From_Query()
        {
            QueryBase qry = new TweeterQuery();
            qry.AddParameter(new AccountParameter() { Value = "@pay_by_phone" });

            Assert.IsTrue(qry.RemoveParameter(new AccountParameter() {Value = "@pay_by_phone"}));
        }
Esempio n. 2
0
        public void A_Url_Encoded_QueryString_Is_Returned()
        {
            QueryBase qry = new TweeterQuery();
            qry.AddParameter(new AccountParameter() { Value = "@pay_by_phone" });

            var expectedResult = "q=" + HttpUtility.UrlEncode("@pay_by_phone");

            Assert.AreEqual(expectedResult, qry.ToString());
        }
Esempio n. 3
0
 public void A_Parameter_Is_Added_To_Query()
 {
     QueryBase qry = new TweeterQuery();
     qry.AddParameter(new AccountParameter(){Value = "@pay_by_phone"});
 }
Esempio n. 4
0
        public void An_AccountParameter_Is_Required_In_A_Query()
        {
            QueryBase qry = new TweeterQuery();

            var url = qry.ToString();
        }