예제 #1
0
        public void EnsureContextPassedInIsNotNull()
        {
            CohortContext    cohortContext = new CohortContext();
            CohortRepository repo          = new CohortRepository(cohortContext);
            var context = repo.CohortDatabase;

            Assert.IsNotNull(context);
        }
예제 #2
0
        public void EnsureICanInjectContextInstance()
        {
            CohortContext context = new CohortContext();

            Repository repo = new Repository(context);

            Assert.IsNotNull(repo.Context);
        }
예제 #3
0
        public void EnsureICanInjectContext()
        {
            //Arrange
            var context = new CohortContext();
            var repo    = new CohortRepository(context);

            //Assert
            Assert.IsNotNull(repo.Context);
        }