using System.Collections.Generic;
using System.Threading.Tasks;
using TINK.Model;
using TINK.Model.Bikes;
using TINK.Model.Station;
using TINK.Model.User;
namespace TestTINKLib.Fixtures.UseCases
{
public class TestHelper
{
///
/// Get all bikes at a given station from copri.
///
public static async Task GetBikesAtStation(
User user,
TINK.Model.Connector.IConnector connector,
IEnumerable stations,
string selectedStationId)
{
var l_oBikesAtStation = new BikeCollectionMutable();
var l_oBikesAvailable = (await connector.Query.GetBikesAsync()).Response;
l_oBikesAtStation.Update(l_oBikesAvailable.GetAtStation(selectedStationId), stations);
return l_oBikesAtStation;
}
}
}