Exemple #1
0
        public static LandingArea Create(ISize landingAreaSize)
        {
            LandingArea landingArea = new LandingArea();

            landingArea.SetSize(landingAreaSize);
            return(landingArea);
        }
Exemple #2
0
        protected Landings(ISize landingAreaSize, ISize platformSize, IPosition platformPosition, int platformRocketSeparation)
        {
            if (landingAreaSize == null)
            {
                throw new ArgumentNullException(nameof(landingAreaSize));
            }

            if (platformSize == null)
            {
                throw new ArgumentNullException(nameof(platformSize));
            }

            _landingArea = LandingArea.Create(landingAreaSize);

            _landingArea.AddLandingPlatform(LandingPlatform.Create(platformSize, platformPosition, platformRocketSeparation));
        }