예제 #1
0
        public void PropertyLastName_WhenPassedValueIsValid_ShouldSetCorrectly()
        {
            // Arrange
            var removeCyclist = new RemoveCyclist("Dragan", "Draganov");

            // Act & Assert
            StringAssert.Contains("Draganov", removeCyclist.LastName);
        }
예제 #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");
        }
예제 #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);
        }