public void TradeRoute_WhenCheckingShipValidForJoiningRoute_Should_RespondYesIfShipDesignMeetsAllCriteria() { var tradeRoute = new TradeRoute(); var shipDesignToCheck = new ShipClassDesign(); var shipIsValid = tradeRoute.ShipDesignValidForRoute(shipDesignToCheck); Assert.IsTrue(shipIsValid); }
public bool ShipDesignValidForRoute(ShipClassDesign shipDesignToCheck) { var isValid = false; foreach (var tradeType in this.GetTrades()) { isValid = this.ShipDesignValidForRoute(shipDesignToCheck, tradeType); if (isValid) { break; } } return(isValid); }
public static bool CheckShipCanTradeMaintenanceSupplies(ShipClassDesign shipDesignToCheck) { throw new NotImplementedException(); }
public static bool CheckShipCanTradeFuel(ShipClassDesign shipDesignToCheck) { throw new NotImplementedException(); }
private bool CheckShipCanTradeCargo(ShipClassDesign shipDesignToCheck) { var isValid = false; return(isValid); }
private bool ShipDesignValidForRoute(ShipClassDesign shipDesignToCheck, TradePriorityEnum tradeTypeToCheck) { var isValid = false; return(isValid); }