Exemplo n.º 1
0
        public void NUnit_Domain_DeleteCatCountry()
        {
            Cat_CountryServices service = new Cat_CountryServices();
            int rs = 0;
            for (int i = 3; i <= 5; i++)
            {
                var Country = new Cat_Country { Id = i };
                if (service.Delete<Cat_Country>(Country.Id) == ActionStatus.DeleteSucceed.ToString())
                {
                    rs += 1;
                    Console.WriteLine("Process Success >>> Delete >>> " + i);
                }
            }
            Console.WriteLine("Total success record: " + rs);

            //NUnit.Framework.Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void NUnit_Domain_DeleteCatCountry()
        {
            Cat_CountryServices service = new Cat_CountryServices();
            int rs = 0;

            for (int i = 3; i <= 5; i++)
            {
                var Country = new Cat_Country {
                    Id = i
                };
                if (service.Delete <Cat_Country>(Country.Id) == ActionStatus.DeleteSucceed.ToString())
                {
                    rs += 1;
                    Console.WriteLine("Process Success >>> Delete >>> " + i);
                }
            }
            Console.WriteLine("Total success record: " + rs);

            //NUnit.Framework.Assert.IsTrue(result);
        }