Beispiel #1
0
        public async Task AddTestCaseComment(long testId, TestCaseComment comment)
        {
            var test = await GetTest(testId);

            comment.TestCase = test;
            await _dbContext.TestCaseComments.AddAsync(comment);

            await _dbContext.SaveChangesAsync();
        }
Beispiel #2
0
 public async Task UpdateComment(TestCaseComment comment)
 {
     _dbContext.TestCaseComments.Update(comment);
     await _dbContext.SaveChangesAsync();
 }