Esempio n. 1
0
        public void PropertyLastName_WhenPassedValueIsValid_ShouldSetCorrectly()
        {
            // Arrange
            var removeCyclist = new RemoveCyclist("Dragan", "Draganov");

            // Act & Assert
            StringAssert.Contains("Draganov", removeCyclist.LastName);
        }
Esempio n. 2
0
        protected void ButtonRemoveCyclicst_Click(object sender, EventArgs e)
        {
            var removeCyclist = new RemoveCyclist(this.TextBoxFirstName.Text, this.TextBoxLastName.Text);

            removeCyclist.Remove();

            Response.Redirect("Cyclists.aspx");
        }
Esempio n. 3
0
        public void Constructor_WhenPassedValuesAreValid_ShouldSetFirstAndLastNameCorrectly()
        {
            // Arrange
            var removeCyclist = new RemoveCyclist("Dragan", "Draganov");

            // Act & Assert
            StringAssert.Contains("Dragan", removeCyclist.FirstName);
            StringAssert.Contains("Draganov", removeCyclist.LastName);
        }