public void PropertyLastName_WhenPassedValueIsValid_ShouldSetCorrectly() { // Arrange var removeCyclist = new RemoveCyclist("Dragan", "Draganov"); // Act & Assert StringAssert.Contains("Draganov", removeCyclist.LastName); }
protected void ButtonRemoveCyclicst_Click(object sender, EventArgs e) { var removeCyclist = new RemoveCyclist(this.TextBoxFirstName.Text, this.TextBoxLastName.Text); removeCyclist.Remove(); Response.Redirect("Cyclists.aspx"); }
public void Constructor_WhenPassedValuesAreValid_ShouldSetFirstAndLastNameCorrectly() { // Arrange var removeCyclist = new RemoveCyclist("Dragan", "Draganov"); // Act & Assert StringAssert.Contains("Dragan", removeCyclist.FirstName); StringAssert.Contains("Draganov", removeCyclist.LastName); }