public void CreateToken() { var token = new TokenKey() { Token = CreateRefreshToken() }; manger.AddTokenKey(token); var table = Sql.SelectQuery("select * from gettoken(@Token)", token); var result = ObjectConverter.ConvertDataTableRowToObject <TokenKey>(table, 0); Assert.AreEqual(token.Token, result.Token); Sql.AlterDataQuery("delete from tokenkey where token = @Token", token); }