Exemplo n.º 1
0
        /// <summary>
        /// tell the master launch system to fire something.
        /// </summary>
        /// <returns>result of the firing</returns>
        public string Fire()
        {
            // TEST: we want to be able to create a FiringSolution, and test FiringSolution,
            // without the worry of causing an international incident.
            MissileLaunchingSystem launcher = new MissileLaunchingSystem();
            return launcher.SendLaunchOrders(this);

            #region decoupled from concrete implementation:
            //IMissileLaunchingSystem launcher = Factory<IMissileLaunchingSystem>.Create();
            //return launcher.SendLaunchOrders(this);
            #endregion
        }
Exemplo n.º 2
0
 /// <summary>
 /// tell the master launch system to fire something.
 /// </summary>
 /// <returns>true if successful, false otherwise</returns>
 public bool Fire()
 {
     MissileLaunchingSystem launcher = new MissileLaunchingSystem();
     return launcher.SendLaunchOrders(this);
 }