public async Task ValidateAsync(ResourceOwnerPasswordValidationContext context)
        {
            var membership = await Task.Run(() => _contextService.GetContext <Membership>(context.UserName).Result);

            context.Result = membership.Password == _cryptographicService.ComputeHash(context.Password) ? new GrantValidationResult(context.UserName, "password")
                                                                                                        : new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Invalid credentials.");
        }
        public void GetDataContext()
        {
            var context = _userContextService.GetContext <TestContext2>("TestUser").Result;

            Assert.AreEqual(context.AssertContent, "My-Init-Test-Content");
        }