Exemplo n.º 1
0
        public int addProvinceTest(
            [PexAssumeUnderTest] BusinessPlayer target,
            string provice,
            string country
            )
        {
            int result = target.addProvince(provice, country);

            return(result);
            // TODO: add assertions to method BusinessPlayerTest.addProvinceTest(BusinessPlayer, String, String)
        }
Exemplo n.º 2
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            if (province.Text.Equals("") || country.Text.Equals(""))
            {
                MessageBox.Show("Vui lòng điền thành phố (tỉnh) và quôc gia cần thêm!");
                return;
            }

            if (business.addProvince(province.Text, country.Text) > 0)
            {
                MessageBox.Show("Thêm thành công!");
                loadDataProvice();
            }
            else
            {
                MessageBox.Show("Đã tồn tại!");
            }
        }