コード例 #1
0
        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;
        }
コード例 #2
0
        public void GetEntryById_Test()
        {
            // ARRANGE
            CreateEntries();
            var entryLogic = new EntryLogic();

            // ACT
            var entry = entryLogic.GetEntryById(1);

            entryLogic.Dispose();

            // ASSERT
            Assert.IsNotNull(entry);
        }