Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        private void AddInitialCafe()
        {
            var building = new BasicCafe("Cafe")
            {
                ResourceCostPerIteration = 0.1, RewardPerIteration = 1
            };

            cmdProc.NewCafe(building);
            building.Position.Value = new Point(300, 300);
        }