Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     pickButton.IsEnabled = false;
     _dbconnector = new DbConnector();
     _centr = new Point(Width / 2, Height / 2 - Background.Margin.Top - 100);
 }
Ejemplo n.º 2
0
 public void DbWorks()
 {
     var dbconn = new DbConnector();
     var result = dbconn.Add("Test Name", true);
     var history = dbconn.GetHistory();
     bool deleted = dbconn.Remove(result);
     Assert.IsTrue(history.Contains(result) && deleted);
 }