public void SummarizeHometask_Test()
        {
            var hometask = new Hometask
            {
                Description = "Exercises 8, 9, 10",
                DueDate = DateTime.Now.AddMinutes(10),
                Id = 3,
                Subject = "InfoTech"
            };

            Assert.AreEqual(hometask.ToString(), TextBuilder.Summarize(hometask));
        }
예제 #2
0
 public async Task AddHometask(Hometask hometask)
 {
     _db.Hometasks.Add(hometask);
     await _db.SaveChangesAsync();
 }