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); }
public StarshipService(ISwApiClient swApiClient, SupplyStopCalculator supplyStopCalculator) { _swApiClient = swApiClient; _supplyStopCalculator = supplyStopCalculator; }