예제 #1
0
        public void AddTestTest()
        {
            var resultBefore = _repo.GetAllTests().Count;
            var id           = Guid.NewGuid();

            _repo.AddTest(new Test()
            {
                CompleteTime = DateTime.Now,
                Id           = id,
                Username     = "******"
            });

            var resultAfter = _repo.GetAllTests().Count;

            Assert.AreEqual(1, resultAfter - resultBefore);

            _repo.RemoveTestByGuid(id);
        }