コード例 #1
0
 public void AddBargainActionTest()
 {
     using (var client = new ShareBargainClient())
     {
         var idkey             = new Guid("832E9BC2-71FC-4505-9DA3-23E5B5980E8D");
         var userId            = new Guid("569D820D-68E9-44C7-8C46-B02137B2B8F3");
         int activityProductId = 357;
         var result            = client.AddBargainAction(idkey, userId, activityProductId);
         Assert.IsNull(result.Exception);
     }
 }
コード例 #2
0
 public void AddBargainActionTest()
 {
     using (var client = new ShareBargainClient())
     {
         var idkey = new Guid("2375C22B-D2D0-46A7-AC54-605093011551");
         //var idkey = new Guid("1FCB2E20-6F17-4CF5-AB1D-C5D32D4446AD");
         //var guid=new Guid("49545CFD-CB2E-4691-ACEA-D3F3E26031C2");
         var userId = new Guid("4F79E798-502C-1891-AFE5-156B452BF4B2");
         var result = client.AddBargainAction(idkey, userId, 318);
         Assert.IsNull(result.Exception);
     }
 }
コード例 #3
0
 public void AddBargainActionTest()
 {
     using (var client = new ShareBargainClient())
     {
         for (var i = 0; i < 3; i++)
         {
             var idkey = new Guid("04BA925E-130B-4227-B2BD-27F08A4B59FB");
             //var guid=new Guid("49545CFD-CB2E-4691-ACEA-D3F3E26031C2");
             var userId = i == 0 ? new Guid("F46C3A58-995A-4607-8F15-A7DAF11F8FA3") : Guid.NewGuid();
             var result = client.AddBargainAction(idkey, userId, 189);
             Assert.IsNull(result.Exception);
         }
     }
 }