public void User_Can_Authenticate()
        {
            // Arrange
            IAccountRepository repository = UnitTestHelpers.MockAccountRepository(
                new User { Email = "*****@*****.**", Password = "******", Token = "12345", UserId = 0 }
                );
            AccountController controller = new AccountController(
                new BookmarksMembershipProvider(repository)
                );

            // Act
            ActionResult result = controller.Authenticate("*****@*****.**", "test");

            // Assert
            ((ContentResult)result).Content.ShouldEqual("12345");
        }
        public void Token_Generated_For_First_Time_Login()
        {
            // Arrange
            IAccountRepository repository = UnitTestHelpers.MockAccountRepository(
             new User { Email = "*****@*****.**", Password = "******", UserId = 0 }
             );
            AccountController controller = new AccountController(
                new BookmarksMembershipProvider(repository)
                );

            // Act
            ActionResult result = controller.Authenticate("*****@*****.**", "test");

            // Assert
            ((ContentResult)result).Content.Length.ShouldEqual(36);
        }