Exemplo n.º 1
0
 public void AddProductPackTest()
 {
     try
     {
         Dictionary <string, string> data = new Dictionary <string, string>();
         data.Add("entityId", "RBA4");
         data.Add("packTime", Brilliantech.BaseClassLib.Util.TimeUtil.GetMilliseconds(DateTime.Now).ToString());
         data.Add("productNr", Guid.NewGuid().ToString());
         data.Add("partId", "91G9067");
         Brilliantech.BaseClassLib.Util.LogUtil.Logger.Error(data);
         Servicer service = new Servicer();
         service.AddProductPack(data);
     }
     catch (Exception e) {
         LogUtil.Logger.Error(e.Message);
     }
 }
Exemplo n.º 2
0
 public void packTest(object o)
 {
     for (int i = 0; i < 200; i++)
     {
         try
         {
             Dictionary <string, string> data = new Dictionary <string, string>();
             data.Add("entityId", "");
             data.Add("packTime", TimeUtil.GetMilliseconds(DateTime.Now).ToString());
             data.Add("productNr", Guid.NewGuid().ToString());
             data.Add("partId", "91G104803");
             LogUtil.Logger.Error(data);
             Servicer service = new Servicer();
             service.AddProductPack(data);
         }
         catch (Exception e)
         {
             LogUtil.Logger.Error(e.Message);
         }
     }
 }
Exemplo n.º 3
0
 public void packTest(object o)
 {
     for (int i = 0; i < 100; i++)
     {
         Console.WriteLine("{0}--{1}",o,i);
         try
         {
             Dictionary<string, string> data = new Dictionary<string, string>();
             data.Add("entityId", "");
             data.Add("packTime", TimeUtil.GetMilliseconds(DateTime.Now).ToString());
             data.Add("productNr", Guid.NewGuid().ToString());
             data.Add("partId", "91G104803");
             LogUtil.Logger.Error(data);
             Servicer service = new Servicer();
             service.AddProductPack(data);
         }
         catch (Exception e)
         {
            LogUtil.Logger.Error(e.Message);
             //Brilliantech.Packaging.EpmIntegration.Util.LogUtil.Logger.Error(e.Message);
         }
     }
 }