Пример #1
0
        private DbSet <Range> GetRanges()
        {
            var dbsRanges = new FakeDbSet <Range>();

            dbsRanges.Add(new Range()
            {
                ImageFile = "ImageFile1", ManufacturerId = 1, RangeId = 1, RangeName = "GLE"
            });
            dbsRanges.Add(new Range()
            {
                ImageFile = "ImageFile2", ManufacturerId = 1, RangeId = 2, RangeName = "GLE Coupe"
            });
            return(dbsRanges);
        }
Пример #2
0
        private DbSet <Manufacturer> GetManufacturers()
        {
            var dbs = new FakeDbSet <Manufacturer>();

            dbs.Add(new Manufacturer()
            {
                ManufacturerName = "Mercedes-Benz", Ranges = null, ManufacturerId = 1
            });
            dbs.Add(new Manufacturer()
            {
                ManufacturerName = "Pagani", Ranges = null, ManufacturerId = 2
            });
            return(dbs);
        }