Exemplo n.º 1
0
        public void PackageControllerUpdate()
        {
            var result = _ctrl.Update(new Package()
            {
                Id = "test"
            });

            Assert.IsTrue(result);
        }
 public void EditMultipleProducts()
 {
     for (int i = 0; i < 10000; i++)
     {
         PackagesController    controller = new PackagesController();
         Random                rnd        = new Random();
         PackagesEditViewModel viewModel  = new PackagesEditViewModel()
         {
             Id            = rnd.Next(1, 100),
             ReceiveDate   = RandomDay(),
             PacketSize    = PacketSize.XS,
             ZipCode       = "2345-230",
             Location      = "Portugal",
             Weight        = rnd.Next(1, 100).ToString(),
             HasValueToPay = false,
             IsFragile     = false
         };
         controller.Update(viewModel);
     }
 }