public void Create()
        {
            //Arrange
            CheckpointAdmission item = new CheckpointAdmission()
            {
                AdmissionID  = 2,
                CheckpointID = 2
            };

            //Act
            repository.Create(item);
            context.SaveChanges();
            var result = repository.GetAll().ToList();

            //Assert
            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(IEnumerable <CheckpointAdmission>));
            Assert.AreEqual(6, result.Count);
            Assert.AreEqual(6, result.Last().ID);
            Assert.AreEqual(item, result.Last());
        }
        public void Update()
        {
            //Arrange
            CheckpointAdmission item = new CheckpointAdmission()
            {
                ID           = 1,
                AdmissionID  = 2,
                CheckpointID = 2
            };

            //Act
            repository.Update(item);
            context.SaveChanges();
            var count  = repository.GetAll().ToList().Count;
            var result = repository.Get(item.ID);

            //Assert
            Assert.IsNotNull(count);
            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(CheckpointAdmission));
            Assert.AreEqual(5, count);
            Assert.AreEqual(item, result);
        }