public void RequestBook()
        {
            Thread.CurrentPrincipal = new UserMock().GetClaimsUser();
            var service = new BookUserService(bookUserRepositoryMock.Object,
                                              bookServiceMock.Object, bookUsersEmailService.Object, unitOfWorkMock.Object);

            service.Insert(bookId);
        }
Exemple #2
0
        public void RequestBook()
        {
            Thread.CurrentPrincipal = new UserMock().GetClaimsUser();
            var service = new BookUserService(bookUserRepositoryMock.Object,
                                              bookServiceMock.Object, bookUsersEmailService.Object, unitOfWorkMock.Object);
            string reason = "I need this book because I'm learning a new programming language.";

            service.Insert(bookId, reason);
        }