{"action":"created","comment":{"url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/comments/159033007","pull_request_review_id":85920347,"id":159033007,"diff_hunk":"@@ -0,0 +1,51 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Diagnostics;\n+using System.Linq;\n+using System.Text;\n+using System.Text.RegularExpressions;\n+using System.Threading.Tasks;\n+using TechTalk.SpecFlow;\n+\n+namespace BookingSpecBindings\n+{\n+\n+\tclass Utils\n+\t{\n+\t\tprivate static Random random = new Random();\n+\t\tpublic static string rnd(string email)\n+\t\t{\n+\t\t\tint length = Int32.Parse(Regex.Match(email, regexRight).ToString());\n+\t\t\tconst string chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n+\t\t\tstring mid = new string(Enumerable.Repeat(chars, length)\n+\t\t\t.Select(s => s[random.Next(s.Length)]).ToArray());\n+\t\t\tstring left = email.Substring(0, email.IndexOf(\"{{\"));\n+\t\t\tstring right = email.Substring(email.IndexOf(\"}}\") + 2);\n+\t\t\treturn left + mid + right;\n+\t\t}\n+\t\tprivate static string regexAll = \"(?={{)(.*?)(?<=}})\";\n+\t\tprivate static string regexLeft = \"(?<={{)(.*?)(?=::)\";\n+\t\tprivate static string regexRight = \"(?<=::)(.*?)(?=}})\";\n+\t\tpublic static string Context(string email)","path":"BookingSpecBindings/Utils.cs","position":29,"original_position":29,"commit_id":"6c48307a4055392080962fc67723e13ce8d4acff","original_commit_id":"8837378d5b33d576a3f9ebb776fbfc6bc583e003","user":{"login":"etolmachev","id":4824929,"avatar_url":"https://avatars0.githubusercontent.com/u/4824929?v=4","gravatar_id":"","url":"https://api.github.com/users/etolmachev","html_url":"https://github.com/etolmachev","followers_url":"https://api.github.com/users/etolmachev/followers","following_url":"https://api.github.com/users/etolmachev/following{/other_user}","gists_url":"https://api.github.com/users/etolmachev/gists{/gist_id}","starred_url":"https://api.github.com/users/etolmachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etolmachev/subscriptions","organizations_url":"https://api.github.com/users/etolmachev/orgs","repos_url":"https://api.github.com/users/etolmachev/repos","events_url":"https://api.github.com/users/etolmachev/events{/privacy}","received_events_url":"https://api.github.com/users/etolmachev/received_events","type":"User","site_admin":false},"body":"You should pass key right away, this method is about working with context, not about parsing strings.","created_at":"2017-12-29T07:43:53Z","updated_at":"2017-12-29T07:50:01Z","html_url":"https://github.com/etolmachev/BookingSpec/pull/4#discussion_r159033007","pull_request_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/comments/159033007"},"html":{"href":"https://github.com/etolmachev/BookingSpec/pull/4#discussion_r159033007"},"pull_request":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4","id":160054174,"html_url":"https://github.com/etolmachev/BookingSpec/pull/4","diff_url":"https://github.com/etolmachev/BookingSpec/pull/4.diff","patch_url":"https://github.com/etolmachev/BookingSpec/pull/4.patch","issue_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/4","number":4,"state":"open","locked":false,"title":"Aqaint 181","user":{"login":"vkrasnobelmov","id":34336713,"avatar_url":"https://avatars0.githubusercontent.com/u/34336713?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrasnobelmov","html_url":"https://github.com/vkrasnobelmov","followers_url":"https://api.github.com/users/vkrasnobelmov/followers","following_url":"https://api.github.com/users/vkrasnobelmov/following{/other_user}","gists_url":"https://api.github.com/users/vkrasnobelmov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrasnobelmov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrasnobelmov/subscriptions","organizations_url":"https://api.github.com/users/vkrasnobelmov/orgs","repos_url":"https://api.github.com/users/vkrasnobelmov/repos","events_url":"https://api.github.com/users/vkrasnobelmov/events{/privacy}","received_events_url":"https://api.github.com/users/vkrasnobelmov/received_events","type":"User","site_admin":false},"body":"Registration. Feature file.","created_at":"2017-12-25T13:17:19Z","updated_at":"2017-12-29T07:50:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"vkrasnobelmov","id":34336713,"avatar_url":"https://avatars0.githubusercontent.com/u/34336713?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrasnobelmov","html_url":"https://github.com/vkrasnobelmov","followers_url":"https://api.github.com/users/vkrasnobelmov/followers","following_url":"https://api.github.com/users/vkrasnobelmov/following{/other_user}","gists_url":"https://api.github.com/users/vkrasnobelmov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrasnobelmov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrasnobelmov/subscriptions","organizations_url":"https://api.github.com/users/vkrasnobelmov/orgs","repos_url":"https://api.github.com/users/vkrasnobelmov/repos","events_url":"https://api.github.com/users/vkrasnobelmov/events{/privacy}","received_events_url":"https://api.github.com/users/vkrasnobelmov/received_events","type":"User","site_admin":false},"assignees":[{"login":"vkrasnobelmov","id":34336713,"avatar_url":"https://avatars0.githubusercontent.com/u/34336713?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrasnobelmov","html_url":"https://github.com/vkrasnobelmov","followers_url":"https://api.github.com/users/vkrasnobelmov/followers","following_url":"https://api.github.com/users/vkrasnobelmov/following{/other_user}","gists_url":"https://api.github.com/users/vkrasnobelmov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrasnobelmov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrasnobelmov/subscriptions","organizations_url":"https://api.github.com/users/vkrasnobelmov/orgs","repos_url":"https://api.github.com/users/vkrasnobelmov/repos","events_url":"https://api.github.com/users/vkrasnobelmov/events{/privacy}","received_events_url":"https://api.github.com/users/vkrasnobelmov/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4/commits","review_comments_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4/comments","review_comment_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/4/comments","statuses_url":"https://api.github.com/repos/etolmachev/BookingSpec/statuses/6c48307a4055392080962fc67723e13ce8d4acff","head":{"label":"etolmachev:AQAINT-181","ref":"AQAINT-181","sha":"6c48307a4055392080962fc67723e13ce8d4acff","user":{"login":"etolmachev","id":4824929,"avatar_url":"https://avatars0.githubusercontent.com/u/4824929?v=4","gravatar_id":"","url":"https://api.github.com/users/etolmachev","html_url":"https://github.com/etolmachev","followers_url":"https://api.github.com/users/etolmachev/followers","following_url":"https://api.github.com/users/etolmachev/following{/other_user}","gists_url":"https://api.github.com/users/etolmachev/gists{/gist_id}","starred_url":"https://api.github.com/users/etolmachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etolmachev/subscriptions","organizations_url":"https://api.github.com/users/etolmachev/orgs","repos_url":"https://api.github.com/users/etolmachev/repos","events_url":"https://api.github.com/users/etolmachev/events{/privacy}","received_events_url":"https://api.github.com/users/etolmachev/received_events","type":"User","site_admin":false},"repo":{"id":113831549,"name":"BookingSpec","full_name":"etolmachev/BookingSpec","owner":{"login":"etolmachev","id":4824929,"avatar_url":"https://avatars0.githubusercontent.com/u/4824929?v=4","gravatar_id":"","url":"https://api.github.com/users/etolmachev","html_url":"https://github.com/etolmachev","followers_url":"https://api.github.com/users/etolmachev/followers","following_url":"https://api.github.com/users/etolmachev/following{/other_user}","gists_url":"https://api.github.com/users/etolmachev/gists{/gist_id}","starred_url":"https://api.github.com/users/etolmachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etolmachev/subscriptions","organizations_url":"https://api.github.com/users/etolmachev/orgs","repos_url":"https://api.github.com/users/etolmachev/repos","events_url":"https://api.github.com/users/etolmachev/events{/privacy}","received_events_url":"https://api.github.com/users/etolmachev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etolmachev/BookingSpec","description":"Spec solution for Booking.com","fork":false,"url":"https://api.github.com/repos/etolmachev/BookingSpec","forks_url":"https://api.github.com/repos/etolmachev/BookingSpec/forks","keys_url":"https://api.github.com/repos/etolmachev/BookingSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etolmachev/BookingSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etolmachev/BookingSpec/teams","hooks_url":"https://api.github.com/repos/etolmachev/BookingSpec/hooks","issue_events_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/events{/number}","events_url":"https://api.github.com/repos/etolmachev/BookingSpec/events","assignees_url":"https://api.github.com/repos/etolmachev/BookingSpec/assignees{/user}","branches_url":"https://api.github.com/repos/etolmachev/BookingSpec/branches{/branch}","tags_url":"https://api.github.com/repos/etolmachev/BookingSpec/tags","blobs_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etolmachev/BookingSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/etolmachev/BookingSpec/languages","stargazers_url":"https://api.github.com/repos/etolmachev/BookingSpec/stargazers","contributors_url":"https://api.github.com/repos/etolmachev/BookingSpec/contributors","subscribers_url":"https://api.github.com/repos/etolmachev/BookingSpec/subscribers","subscription_url":"https://api.github.com/repos/etolmachev/BookingSpec/subscription","commits_url":"https://api.github.com/repos/etolmachev/BookingSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/etolmachev/BookingSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/etolmachev/BookingSpec/contents/{+path}","compare_url":"https://api.github.com/repos/etolmachev/BookingSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etolmachev/BookingSpec/merges","archive_url":"https://api.github.com/repos/etolmachev/BookingSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etolmachev/BookingSpec/downloads","issues_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues{/number}","pulls_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/etolmachev/BookingSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/etolmachev/BookingSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etolmachev/BookingSpec/labels{/name}","releases_url":"https://api.github.com/repos/etolmachev/BookingSpec/releases{/id}","deployments_url":"https://api.github.com/repos/etolmachev/BookingSpec/deployments","created_at":"2017-12-11T08:18:40Z","updated_at":"2017-12-11T10:04:22Z","pushed_at":"2017-12-29T07:37:53Z","git_url":"git://github.com/etolmachev/BookingSpec.git","ssh_url":"git@github.com:etolmachev/BookingSpec.git","clone_url":"https://github.com/etolmachev/BookingSpec.git","svn_url":"https://github.com/etolmachev/BookingSpec","homepage":null,"size":1572,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"hulk"}},"base":{"label":"etolmachev:hulk","ref":"hulk","sha":"379e7771b324bc22ec79edee71c46eebb488014e","user":{"login":"etolmachev","id":4824929,"avatar_url":"https://avatars0.githubusercontent.com/u/4824929?v=4","gravatar_id":"","url":"https://api.github.com/users/etolmachev","html_url":"https://github.com/etolmachev","followers_url":"https://api.github.com/users/etolmachev/followers","following_url":"https://api.github.com/users/etolmachev/following{/other_user}","gists_url":"https://api.github.com/users/etolmachev/gists{/gist_id}","starred_url":"https://api.github.com/users/etolmachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etolmachev/subscriptions","organizations_url":"https://api.github.com/users/etolmachev/orgs","repos_url":"https://api.github.com/users/etolmachev/repos","events_url":"https://api.github.com/users/etolmachev/events{/privacy}","received_events_url":"https://api.github.com/users/etolmachev/received_events","type":"User","site_admin":false},"repo":{"id":113831549,"name":"BookingSpec","full_name":"etolmachev/BookingSpec","owner":{"login":"etolmachev","id":4824929,"avatar_url":"https://avatars0.githubusercontent.com/u/4824929?v=4","gravatar_id":"","url":"https://api.github.com/users/etolmachev","html_url":"https://github.com/etolmachev","followers_url":"https://api.github.com/users/etolmachev/followers","following_url":"https://api.github.com/users/etolmachev/following{/other_user}","gists_url":"https://api.github.com/users/etolmachev/gists{/gist_id}","starred_url":"https://api.github.com/users/etolmachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etolmachev/subscriptions","organizations_url":"https://api.github.com/users/etolmachev/orgs","repos_url":"https://api.github.com/users/etolmachev/repos","events_url":"https://api.github.com/users/etolmachev/events{/privacy}","received_events_url":"https://api.github.com/users/etolmachev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etolmachev/BookingSpec","description":"Spec solution for Booking.com","fork":false,"url":"https://api.github.com/repos/etolmachev/BookingSpec","forks_url":"https://api.github.com/repos/etolmachev/BookingSpec/forks","keys_url":"https://api.github.com/repos/etolmachev/BookingSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etolmachev/BookingSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etolmachev/BookingSpec/teams","hooks_url":"https://api.github.com/repos/etolmachev/BookingSpec/hooks","issue_events_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/events{/number}","events_url":"https://api.github.com/repos/etolmachev/BookingSpec/events","assignees_url":"https://api.github.com/repos/etolmachev/BookingSpec/assignees{/user}","branches_url":"https://api.github.com/repos/etolmachev/BookingSpec/branches{/branch}","tags_url":"https://api.github.com/repos/etolmachev/BookingSpec/tags","blobs_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etolmachev/BookingSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/etolmachev/BookingSpec/languages","stargazers_url":"https://api.github.com/repos/etolmachev/BookingSpec/stargazers","contributors_url":"https://api.github.com/repos/etolmachev/BookingSpec/contributors","subscribers_url":"https://api.github.com/repos/etolmachev/BookingSpec/subscribers","subscription_url":"https://api.github.com/repos/etolmachev/BookingSpec/subscription","commits_url":"https://api.github.com/repos/etolmachev/BookingSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/etolmachev/BookingSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/etolmachev/BookingSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/etolmachev/BookingSpec/contents/{+path}","compare_url":"https://api.github.com/repos/etolmachev/BookingSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etolmachev/BookingSpec/merges","archive_url":"https://api.github.com/repos/etolmachev/BookingSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etolmachev/BookingSpec/downloads","issues_url":"https://api.github.com/repos/etolmachev/BookingSpec/issues{/number}","pulls_url":"https://api.github.com/repos/etolmachev/BookingSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/etolmachev/BookingSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/etolmachev/BookingSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etolmachev/BookingSpec/labels{/name}","releases_url":"https://api.github.com/repos/etolmachev/BookingSpec/releases{/id}","deployments_url":"https://api.github.com/repos/etolmachev/BookingSpec/deployments","created_at":"2017-12-11T08:18:40Z","updated_at":"2017-12-11T10:04:22Z","pushed_at":"2017-12-29T07:37:53Z","git_url":"git://github.com/etolmachev/BookingSpec.git","ssh_url":"git@github.com:etolmachev/BookingSpec.git","clone_url":"https://github.com/etolmachev/BookingSpec.git","svn_url":"https://github.com/etolmachev/BookingSpec","homepage":null,"size":1572,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"hulk"}},"_links":{"self":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4"},"html":{"href":"https://github.com/etolmachev/BookingSpec/pull/4"},"issue":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/issues/4"},"comments":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/etolmachev/BookingSpec/statuses/6c48307a4055392080962fc67723e13ce8d4acff"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"etolmachev"}}