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

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