Пример #1
0
        public void GivenIHaveANewHomeAtNamed(double x, double y)
        {
            var pos = new Mock <IPosition>();

            pos.SetupGet(p => p.Value).Returns(new Point(x, y));
            building = home = new BasicHome(pos.Object);
            Community.Add(home);
        }
Пример #2
0
        public void GivenIHaveANewCafeAt(double x, double y)
        {
            var pos = new Mock <IPosition>();

            pos.SetupGet(p => p.Value).Returns(new System.Windows.Point(x, y));
            building = cafe = new BasicCafe(pos.Object);
            Community.Add(cafe);
        }
Пример #3
0
 /// <summary>
 /// Configures the community amenities.
 /// </summary>
 private void ConfigureCommunityAmenities()
 {
     Community.Add("communityfitness", "Fitness Center");
     Community.Add("communitytennis", "Tennis Court");
     Community.Add("communitypark", "Near Park");
     Community.Add("communityclubhouse", "Clubhouse");
     Community.Add("communitybasketball", "Basketball Court");
     Community.Add("communitylaundry", "Onsite Laundry");
     Community.Add("communitypool", "Pool");
     Community.Add("communityplayground", "Playground");
     Community.Add("communitymanager", "Onsite Manager");
     Community.Add("communityhottub", "Hot Tub");
     Community.Add("communitybbq", "Bbq Area");
     Community.Add("communitymaintenance", "Onsite Maintenance");
 }