public void ResultsInitialize()
        {
            // Setup
            AddWordResult addWordResult = new AddWordResult();
            GetUserResult getUserResult = new GetUserResult();
            GetStoriesResult getStoriesResult = new GetStoriesResult();

            // Assert
            Assert.IsNotNull(addWordResult.Story);
            Assert.IsNotNull(addWordResult.ErrorCode);
            Assert.IsNotNull(getUserResult.User);
            Assert.IsNotNull(getUserResult.UserCode);
            Assert.IsNotNull(getStoriesResult.Stories);
        }
 private static bool LoginSuccessful(Login login, GetUserResult result)
 {
     return result.UserCode == UserErrorCode.Success && result.User.Password == login.Password.Hash();
 }
        private static GetUserResult ReturnGetUserResult(User user, UserErrorCode failureCode)
        {
            var result = new GetUserResult() { User = user };

            if (user == null)
                result.UserCode = failureCode;
            else
                result.UserCode = UserErrorCode.Success;

            return result;
        }