コード例 #1
0
ファイル: GrouponTest.cs プロジェクト: akoesnan/PraLoup
 //[Test]
 public void TestGetGrouponDivisionSuccess()
 {
     GrouponClient g = new GrouponClient();
     var id = g.GetGrouponDivision("Seattle");
     Assert.AreEqual("seattle", id, "The division id of seattle is seattle");
 }
コード例 #2
0
ファイル: GrouponTest.cs プロジェクト: akoesnan/PraLoup
 //[Test]
 public void TestGetGrouponDealInSeattle()
 {
     GrouponClient g = new GrouponClient();
     var events = g.GetDataFromDivisionId("seattle");
     Assert.AreNotEqual(0, events.Count(), "there should be more than 0 events in seattle");
 }