Exemplo n.º 1
0
        /// <summary>
        /// Gets a complete <see cref="Summary"/> object for the specified <see cref="LauncherCollection"/>.
        /// </summary>
        /// <param name="launcherCollection">The <see cref="LauncherCollection"/> to analyze.</param>
        public Summary GetCompleteSummary(LauncherCollection launcherCollection)
        {
            var numberOfVehicles  = launcherCollection.Launchers.Count;
            var fairingSummary    = FairingController.GetFairingSummary(launcherCollection.Launchers);
            var priceSummary      = PriceController.GetPriceSummary(launcherCollection.Launchers);
            var capabilitySummary = CapabilityController.GetCapabilitySummary(launcherCollection.Launchers).ToList();

            return(new Summary(numberOfVehicles, capabilitySummary, fairingSummary, priceSummary));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets a complete <see cref="Summary"/> object for the specified <see cref="VehicleFamily"/>.
        /// </summary>
        /// <param name="vehicleFamily">The <see cref="VehicleFamily"/> to analyze.</param>
        public Summary GetCompleteSummary(VehicleFamily vehicleFamily)
        {
            var numberOfVehicles  = GetNumberOfVehicles(vehicleFamily);
            var fairingSummary    = FairingController.GetFairingSummary(vehicleFamily);
            var priceSummary      = PriceController.GetPriceSummary(vehicleFamily);
            var capabilitySummary = CapabilityController.GetCapabilitySummary(vehicleFamily).ToList();

            return(new Summary(numberOfVehicles, capabilitySummary, fairingSummary, priceSummary));
        }