public void ShouldGetByUserId()
        {
            var applicationUserManager = this.GetApplicationUserManagerMock();
            var applicationDbContext = this.GetApplicationDbContextMock();

            var todoController = new TodoController(applicationUserManager.Object, applicationDbContext.Object);

            var todos = todoController.GetByUserId().Result as OkNegotiatedContentResult<List<ToDo>>;

            Assert.IsNotNull(todos);
            Assert.AreEqual(todos.Content.Count(), 2);
        }
        public void ShouldGetByUserId()
        {
            var applicationUserManager = this.GetApplicationUserManagerMock();
            var applicationDbContext   = this.GetApplicationDbContextMock();

            var todoController = new TodoController(applicationUserManager.Object, applicationDbContext.Object);

            var todos = todoController.GetByUserId().Result as OkNegotiatedContentResult <List <ToDo> >;

            Assert.IsNotNull(todos);
            Assert.AreEqual(todos.Content.Count(), 2);
        }