Exemplo n.º 1
0
 public static IQueryable <CarEntity> GetMockCollection()
 {
     return(new List <CarEntity>
     {
         new CarEntity
         {
             Id = 1, DateCreated = DateTime.Now.AddYears(-3), Title = "Title 1", Description = "Description 1", GarageId = 1, CategoryId = 1, ImpactClass_Index = 1, ProbabilityClass_Index = 1,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 1),
             Category = CarCategoryConstants.GetMockCollection().First(x => x.Id == 1),
             CarImpactClass = CarImpactClassEntityConstants.GetMockCollection().First(x => x.Id == 1),
             CarProbabilityClass = CarProbabilityClassEntityConstants.GetMockCollection().First(x => x.Id == 1)
         },
         new CarEntity
         {
             Id = 2, DateCreated = DateTime.Now.AddYears(-2), Title = "Title 2", Description = "Description 2", GarageId = 2, CategoryId = 2, ImpactClass_Index = 2, ProbabilityClass_Index = 3,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 2),
             Category = CarCategoryConstants.GetMockCollection().First(x => x.Id == 2),
             CarImpactClass = CarImpactClassEntityConstants.GetMockCollection().First(x => x.Id == 2),
             CarProbabilityClass = CarProbabilityClassEntityConstants.GetMockCollection().First(x => x.Id == 2)
         },
         new CarEntity
         {
             Id = 3, DateCreated = DateTime.Now.AddYears(-1), Title = "Title 3", Description = "Description 3", GarageId = 3, CategoryId = 3, ImpactClass_Index = 3, ProbabilityClass_Index = 3,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 3),
             Category = CarCategoryConstants.GetMockCollection().First(x => x.Id == 3),
             CarImpactClass = CarImpactClassEntityConstants.GetMockCollection().First(x => x.Id == 3),
             CarProbabilityClass = CarProbabilityClassEntityConstants.GetMockCollection().First(x => x.Id == 3)
         }
     }.AsQueryable());
 }
Exemplo n.º 2
0
 public static IQueryable <ReportEntity> GetMockCollection()
 {
     return(new List <ReportEntity>
     {
         new ReportEntity
         {
             Id = 1, DateCreated = DateTime.Now.AddYears(-5), Notes = "Note 1", ReportTimePeriod = "2017", GarageId = 1,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 1)
         },
         new ReportEntity
         {
             Id = 2, DateCreated = DateTime.Now.AddYears(-4), Notes = "Note 2", ReportTimePeriod = "2018", GarageId = 2,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 2)
         },
         new ReportEntity
         {
             Id = 3, DateCreated = DateTime.Now.AddYears(-3), Notes = "Note 3", ReportTimePeriod = "2017", GarageId = 3,
             Garage = GarageConstants.GetMockCollection().First(x => x.Id == 3)
         }
     }.AsQueryable());
 }