Пример #1
0
        public static async Task <(Taxi Taxi, Driver Driver, int ID)> AddDummyRideAsync(this TaxiDataContext DbContext)
        {
            var newTaxi = await DbContext.AddDummyTaxiAsync();

            var newDriver = await DbContext.AddDummyDriverAsync();

            var newRideID = await DbContext.StartRideAsync(newTaxi.Taxi, newDriver.Driver);

            return(newTaxi.Taxi, newDriver.Driver, newRideID);
        }