Exemple #1
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            PlayerBO player = new PlayerBO();

            player.AddPlayer(txtName.Text, txtAddress.Text, txtPhone.Text, txtEmail.Text);
            Server.Transfer("~/Player.aspx");
        }
        public void TestCreateNew()
        {
            PlayerBO player = new PlayerBO();

            //adding comments to my unit tests
            //more comments
            player.AddPlayer("Kei Nishikori", "Japan", "", "");
            Assert.IsTrue(player.GetPlayerByName("Kei Nishikori").IsActive);
        }