26 lines
661 B
C#
26 lines
661 B
C#
|
using MyDriving.DataObjects;
|
|||
|
using MyDriving.DataStore.Abstractions;
|
|||
|
using MyDriving.Utils;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MyDriving.DataStore.Mock.Stores
|
|||
|
{
|
|||
|
public class TripPointStore : BaseStore<TripPoint>, ITripPointStore
|
|||
|
{
|
|||
|
ITripStore tripStore;
|
|||
|
|
|||
|
public TripPointStore()
|
|||
|
{
|
|||
|
tripStore = ServiceLocator.Instance.Resolve<ITripStore>();
|
|||
|
}
|
|||
|
public async Task<IEnumerable<TripPoint>> GetPointsForTripAsync(string id)
|
|||
|
{
|
|||
|
return (await tripStore.GetItemAsync(id)).Points;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|