Exemplo n.º 1
0
        public async Task Get_Term_Success()
        {
            var term = new Term
            {
                Id           = "001",
                Name         = "A",
                StartDate    = DateTime.Now,
                EndDate      = DateTime.Now.AddMonths(3),
                UniversityId = "001"
            };

            _context.Terms.Add(term);

            var result = await _controller.GetTerm(term.Id);

            Assert.Equal(term, result.Value);
        }