예제 #1
0
        public void CanCreateRegion()
        {
            string regionDesc = "Northwest";
            RegionWithPublicConstructor region = new RegionWithPublicConstructor(regionDesc);

            Assert.That(region.Description, Is.EqualTo(regionDesc));
        }
예제 #2
0
        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");
        }
예제 #3
0
        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");
        }
예제 #4
0
 public void CanCreateRegion()
 {
     string regionDesc = "Northwest";
     RegionWithPublicConstructor region = new RegionWithPublicConstructor(regionDesc);
     Assert.That(region.Description, Is.EqualTo(regionDesc));
 }