Esempio n. 1
0
        public void CanCreateRegion()
        {
            string regionDesc = "Northwest";
            RegionWithPublicConstructor region = new RegionWithPublicConstructor(regionDesc);

            Assert.That(region.Description, Is.EqualTo(regionDesc));
        }
        public void CanCreateTerritory() {
            Region region = new RegionWithPublicConstructor("Midwest");

            Territory territory = new Territory("Cincinnati", region);
            territory.Description.ShouldEqual("Cincinnati");
            territory.RegionBelongingTo.ShouldEqual(region);
            territory.Id.ShouldBeNull();

            territory.SetAssignedIdTo("ABRACADABRA");
            territory.Id.ShouldEqual("ABRACADABRA");
        }
        public void CanCreateTerritory()
        {
            Region region = new RegionWithPublicConstructor("Midwest");

            Territory territory = new Territory("Cincinnati", region);

            territory.Description.ShouldEqual("Cincinnati");
            territory.RegionBelongingTo.ShouldEqual(region);
            territory.Id.ShouldBeNull();

            territory.SetAssignedIdTo("ABRACADABRA");
            territory.Id.ShouldEqual("ABRACADABRA");
        }
 public void CanCreateRegion()
 {
     string regionDesc = "Northwest";
     RegionWithPublicConstructor region = new RegionWithPublicConstructor(regionDesc);
     Assert.That(region.Description, Is.EqualTo(regionDesc));
 }