Ejemplo n.º 1
0
        public void Band_Update_UpdatesBand()
        {
            Band firstBand = new Band("Ween");
              firstBand.Save();

              firstBand.Update("Dexy's Midnight Runners");

              Band resultBand = Band.Find(firstBand.GetId());

              Assert.Equal("Dexy's Midnight Runners", resultBand.GetName());
        }
        public void Band_Update_UpdateBandInfo()
        {
            Band band = new Band("The Beatles", 4);

            band.Save();

            Band controlBand = new Band("Phantogram", 2, band.Id);

            band.Update("Phantogram", 2);

            Assert.Equal(controlBand, band);
        }