public void RouteTotalCalculationWith2Addresses() { IEnumerable <IAddress> addresses = new List <IAddress> { _modelFactory.Create("Avenida Paulista", "1000", "São Paulo", "SP"), _modelFactory.Create("Av Nove de Julho", "1500", "São Paulo", "SP") }; var routeTotal = _calculateTotalOfRouteService.GetTotalValuesOfRoute(addresses, 0); AssertValues.CheckRouteTotal(routeTotal); }
public void RouteTotalCalculationWithMultipleAddressesAndRouteAvoidingTrafficTest() { IEnumerable <IAddress> addresses = new List <IAddress> { _modelFactory.Create("Avenida Paulista", "1000", "São Paulo", "SP"), _modelFactory.Create("Av Pres Juscelino Kubitschek", "1000", "São Paulo", "SP"), _modelFactory.Create("Av Nove de Julho", "1500", "São Paulo", "SP") }; var routeTotal = _calculateTotalOfRouteService.GetTotalValuesOfRoute(addresses, 23); AssertValues.CheckRouteTotal(routeTotal); }