Beispiel #1
0
 public void CompanyFakerTest()
 {
     DisplayAndExecute(new Expression <Func <string> >[] {
         () => CompanyFaker.Name(),
         () => CompanyFaker.BS(),
     });
 }
        protected override void Seed(Model1 model1)
        {
            for (int i = 0; i < 10; i++)
            {
                Depo depo = new Depo
                {
                    Ad    = CompanyFaker.Name(),
                    Soyad = LocationFaker.Country()
                };
                model1.Depo.Add(depo);
            }

            model1.SaveChanges();
        }