private void Add_Employe(object sender, RoutedEventArgs e) { if (OwnerValidation.Validate()) { AddEmployeWindow window = new AddEmployeWindow(); window.Show(); Close(); } }
public static void TestFixtureSetup(TestContext context) { con = new NpgsqlConnection(cs); con.Open(); ownerValidation = new OwnerValidation(con); ownersRepository = new OwnersRepository(con); ownersRepository.Save(Owner1); ownersRepository.Save(Owner2); ownersRepository.Save(Owner3); ownersRepository.Flush(); }