public RelationshipService(IRelationshipRepository repository, IUnitOfWork unitOfWork, NotebooksDbContext context)
        {
            this.repository = repository;
            this.unitOfWork = unitOfWork;
            this.context    = context;

            this.repository.setContext(context);
            this.unitOfWork.setContext(context);
        }
Exemple #2
0
        public UserService(IUserRepository repository, IUnitOfWork unitOfWork, NotebooksDbContext context)
        {
            this.repository = repository;
            this.unitOfWork = unitOfWork;
            this.context    = context;

            this.repository.setContext(context);
            this.unitOfWork.setContext(context);
        }
        public NotebookService(INotebooksRepository repository, IUnitOfWork unitOfWork, NotebooksDbContext context)
        {
            this.repository = repository;
            this.unitOfWork = unitOfWork;

            this.repository.setNotebookDbContext(context);
            this.unitOfWork.setContext(context);
        }
 public void setContext(NotebooksDbContext context)
 {
     this.Context = context;
 }
        public void NotebooksDbContext_Should_Create()
        {
            var context = NotebooksDbContext.Create();

            Assert.IsInstanceOf <NotebooksDbContext>(context);
        }