Exemplo n.º 1
0
 private void SeedDepartures()
 {
     Departures = new List <Departure>()
     {
         new Departure(Crews.First(), Planes.First())
         {
             Id            = 1,
             AddedDate     = DateTime.Now,
             ModifiedDate  = DateTime.Now,
             DepartureTime = new DateTime(2018, 8, 10, 11, 0, 0),
             FlightId      = 1
         },
         new Departure(Crews.Skip(1).First(), Planes.Skip(1).First())
         {
             Id            = 2,
             AddedDate     = DateTime.Now,
             ModifiedDate  = DateTime.Now,
             DepartureTime = new DateTime(2018, 8, 11, 12, 0, 0),
             FlightId      = 2
         }
     };
 }