Exemplo n.º 1
0
        public int addMadeInTest([PexAssumeUnderTest] BusinessPlayer target, string data)
        {
            int result = target.addMadeIn(data);

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

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