main
 1namespace mars.rover.domain
 2{
 3    public class Mars : Plateau
 4    {
 5        readonly Coordinate top_x_coordinate;
 6        readonly Coordinate top_y_coordinate;
 7
 8        public Mars(uint top_x_coordinate, uint top_y_coordinate)
 9        {
10            this.top_x_coordinate = top_x_coordinate;
11            this.top_y_coordinate = top_y_coordinate;
12        }
13
14        public virtual bool within_x_axis(Coordinate x)
15        {
16            return top_x_coordinate.CompareTo(x) >= 0;
17        }
18
19        public virtual bool within_y_axis(Coordinate y)
20        {
21            return top_y_coordinate.CompareTo(y) >= 0;
22        }
23    }
24}