Esempio n. 1
0
 public override bool Equals(System.Object otherVenue)
 {
     if (!(otherVenue is Venue))
     {
         return(false);
     }
     else
     {
         Venue newVenue     = (Venue)otherVenue;
         bool  idEquality   = (this.GetId() == newVenue.GetId());
         bool  nameEquality = (this.GetName() == newVenue.GetName());
         return(idEquality && nameEquality);
     }
 }
Esempio n. 2
0
        public void T6_Update_UpdatesVenueInDatabase()
        {
            //Arrange
            string name      = "Pheonix";
            Venue  testVenue = new Venue(name);

            testVenue.Save();
            string newName = "Rock Candy";

            //Act
            testVenue.Update(newName);
            string result = testVenue.GetName();

            //Assert
            Assert.Equal(newName, result);
        }
Esempio n. 3
0
 public void T6_Update_UpdatesVenueInDatabase()
 {
     //Arrange
       string name = "Pheonix";
       Venue testVenue = new Venue(name);
       testVenue.Save();
       string newName = "Rock Candy";
       //Act
       testVenue.Update(newName);
       string result = testVenue.GetName();
       //Assert
       Assert.Equal(newName, result);
 }