public AddEntry(int entry_id) { InitializeComponent(); this.chebo_FinishesSubtask.IsEnabled = false; var entryLogic = new EntryLogic(); var entry = entryLogic.GetEntryById(entry_id); this.tb_Description.Text = entry.Comment; this.tb_Name.Text = entry.Name; this.cb_Subtask.IsEnabled = false; this.btn_StartStop.IsEnabled = false; this.entry_id = entry_id; }
public void GetEntryById_Test() { // ARRANGE CreateEntries(); var entryLogic = new EntryLogic(); // ACT var entry = entryLogic.GetEntryById(1); entryLogic.Dispose(); // ASSERT Assert.IsNotNull(entry); }