public UsersSeeder(IFarmDbContext context, FarmlandsService relatorService) : base(context) { Entities = new Lazy <IEnumerable <User> >(() => new List <User> { new User { Id = Guid.NewGuid(), FirstName = "John", LastName = "Donald" }, new User { Id = Guid.NewGuid(), FirstName = "Sarra", LastName = "Daniel" }, new User { Id = Guid.NewGuid(), FirstName = "Marc", LastName = "Subermaniam" }, }); RelatorService = relatorService; }
public EquipmentSeeder(IFarmDbContext context, FarmlandsSeeder relatorService) : base(context) { Entities = new Lazy <IEnumerable <Equipment> >(() => new List <Equipment> { new Equipment { Id = Guid.NewGuid(), Name = "IF - SEEDER 731", Type = EquipmentType.Seeder }, new Equipment { Id = Guid.NewGuid(), Name = "IF - SPRAYER 91", Type = EquipmentType.Sprayer }, new Equipment { Id = Guid.NewGuid(), Name = "IF - TRACKTOR 061", Type = EquipmentType.Tracktor }, }); RelatorService = relatorService; }
public FarmlandsSeeder(IFarmDbContext context) : base(context) { Entities = new Lazy <IEnumerable <Farmland> >(() => new List <Farmland> { new Farmland { Id = Guid.NewGuid(), Location = "Albera", NbAcres = 10 }, new Farmland { Id = Guid.NewGuid(), Location = "Vancouver", NbAcres = 8 }, new Farmland { Id = Guid.NewGuid(), Location = "Saskatchewan", NbAcres = 78 }, }); }
public FarmlandsService(IFarmDbContext context) : base(context) { }
public BaseService(IFarmDbContext context) { DbContext = context; DbSet = DbContext.Set <T>(); }
public UsersService(IFarmDbContext context) : base(context) { }
public BaseSeeder(IFarmDbContext context) : base(context) { }
public EquipmentsService(IFarmDbContext context) : base(context) { }