Beispiel #1
0
        private void CreateLine()
        {
            Line line = new Line()
            {
                Name    = Faker.StringFaker.Alpha(10),
                Power   = Faker.NumberFaker.Number(128, 1024),
                Voltage = Faker.NumberFaker.Number(110, 510),
                Geocode = Faker.LocationFaker.ZipCode(),
            };

            _repository.Insert(line);
        }
Beispiel #2
0
 public void Create <T>(T model)
 {
     View.Bind(model);
     if (View.ShowDialog() == DialogResult.OK)
     {
         _repository.Insert(View.Data);
     }
 }