Exemple #1
0
        public void ShouldCalculateTheNumberOfStopsRequired(int distance, int mgltDailyDistance, int daysOfSupplyDuration, int?expectedResult)
        {
            SupplyStopCalculator calculator = new SupplyStopCalculator();
            int?result = calculator.CalculateNumberOfStops(distance, mgltDailyDistance, daysOfSupplyDuration);

            result.Should().Be(expectedResult);
        }
Exemple #2
0
 public StarshipService(ISwApiClient swApiClient,
                        SupplyStopCalculator supplyStopCalculator)
 {
     _swApiClient          = swApiClient;
     _supplyStopCalculator = supplyStopCalculator;
 }