Beispiel #1
0
        public void CanAddVenue()
        {
            Guid id = new Guid();
            string name = "NightnDay";
            string url = "http://www.nightnday.org/";
            string description = "The heart and soul of Manchesters music scene.";
            string telephone = "0161 236 4597";

            Town town = new Town();

            Venue venue = new Venue();
            venue.ID = id;
            venue.Name = name;
            venue.Description = description;
            venue.URL = url;
            venue.Telephone = telephone;
            venue.Town = town;

            Assert.That(venue.ID,
               Is.EqualTo(id));
            Assert.That(venue.Name,
                Is.EqualTo(name));
            Assert.That(venue.Description,
                Is.EqualTo(description));
            Assert.That(venue.Town,
                Is.EqualTo(town));
            Assert.That(venue.URL,
                Is.EqualTo(url));
            Assert.That(venue.Town,
                Is.EqualTo(town));
        }
Beispiel #2
0
        public void CanAddSite()
        {
            Guid id = new Guid();
            string name = "ListenToManchester";
            string url = "http://www.listentomanchester.co.uk";
            string description = "The ListenTo site for Manchester";

            Town town = new Town();

            Site site = new Site();
            site.ID = id;
            site.Name = name;
            site.Description = description;
            site.URL = url;
            site.TownsRepresented.Add(town);

            Assert.That(site.ID,
               Is.EqualTo(id));
            Assert.That(site.Name,
                Is.EqualTo(name));
            Assert.That(site.Description,
                Is.EqualTo(description));
            Assert.That(site.URL,
                Is.EqualTo(url));
            Assert.That(site.TownsRepresented.Count,
                Is.EqualTo(1));
        }
Beispiel #3
0
        public void CanAddTown()
        {
            Guid id = new Guid();
            string name = "Manchester";
            Site site = new Site();

            Town town = new Town();
            town.ID = id;
            town.Name = name;
            town.RepresentativeSites.Add(site);

            Assert.That(town.ID,
               Is.EqualTo(id));
            Assert.That(town.Name,
                Is.EqualTo(name));
            Assert.That(town.RepresentativeSites.Count,
                Is.EqualTo(1));
        }