示例#1
0
        public void Producer_Pickrobot_isRobot()
        {
            var id  = Guid.NewGuid();
            var rob = prod.PickRobot(id);

            Assert.IsTrue(rob is Robot);
        }
示例#2
0
        public IField StartApp()
        {
            Player         p       = new Player("azazalo");
            IRobotProducer rp      = new RobotProducer();
            Robot          MyRobot = rp.PickRobot(p.PlayerId);
            IFieldBuilder  b       = new FieldBuilder();

            this.builder = b;
            var field = builder.CreateField(10, 10, MyRobot);

            return(field);
        }