public void NotebookService_Should_Call_Commit_When_SaveContent(string text)
        {
            var mockedRepository = new Mock <INotebooksRepository>();

            mockedRepository.Setup(r => r.Find(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>()))
            .Returns(
                new Notebook()
            {
                Id       = 0,
                Content  = text,
                Subject  = text,
                Type     = text,
                Username = text
            });

            mockedRepository.Setup(r => r.Update(It.IsAny <Notebook>(), It.IsAny <string>()));

            var mockedUnitOfWork = new Mock <IUnitOfWork>();

            mockedUnitOfWork.Setup(u => u.Commit());

            var mockedDbContext = new Mock <INotebookDbContext>();

            var service = new NotebookService(mockedRepository.Object, mockedUnitOfWork.Object, new MockedDbContext());

            service.Initialize();
            service.SaveContent(text);

            mockedUnitOfWork.Verify(u => u.Commit(), Times.AtLeast(2));
        }