{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-net/issues/318","repository_url":"https://api.github.com/repos/Azure/azure-storage-net","labels_url":"https://api.github.com/repos/Azure/azure-storage-net/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-net/issues/318/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-net/issues/318/events","html_url":"https://github.com/Azure/azure-storage-net/issues/318","id":167113625,"number":318,"title":"Mocking CloudBlobContainer","user":{"login":"Jericho","id":112710,"avatar_url":"https://avatars.githubusercontent.com/u/112710?v=3","gravatar_id":"","url":"https://api.github.com/users/Jericho","html_url":"https://github.com/Jericho","followers_url":"https://api.github.com/users/Jericho/followers","following_url":"https://api.github.com/users/Jericho/following{/other_user}","gists_url":"https://api.github.com/users/Jericho/gists{/gist_id}","starred_url":"https://api.github.com/users/Jericho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jericho/subscriptions","organizations_url":"https://api.github.com/users/Jericho/orgs","repos_url":"https://api.github.com/users/Jericho/repos","events_url":"https://api.github.com/users/Jericho/events{/privacy}","received_events_url":"https://api.github.com/users/Jericho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-22T19:18:46Z","updated_at":"2016-07-25T15:30:13Z","closed_at":null,"body":"Several improvements were introduced in Azure storage SDK 7.0 to make classes easier to mock in unit testing (for instance: classes were unsealed, methods were marked as virtual, etc.). This is really great. However, I noticed that a few methods are still not marked as 'virtual' and therefore can't be mocked. One such example is the GetBlobReference method on the CloudBlobContainer class. There are other methods in the same situation, I'm just using this one to illustrate the issue.\r\n\r\nI'm wondering if this was an oversight that I can expect to see fixed in an upcoming release of the SDK or if it was intentional. If it was intentional, can anyone suggest a strategy that would allow me to mock these methods? I'm using [Moq](https://www.nuget.org/packages/Moq).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-net/issues/comments/234988550","html_url":"https://github.com/Azure/azure-storage-net/issues/318#issuecomment-234988550","issue_url":"https://api.github.com/repos/Azure/azure-storage-net/issues/318","id":234988550,"user":{"login":"Jericho","id":112710,"avatar_url":"https://avatars.githubusercontent.com/u/112710?v=3","gravatar_id":"","url":"https://api.github.com/users/Jericho","html_url":"https://github.com/Jericho","followers_url":"https://api.github.com/users/Jericho/followers","following_url":"https://api.github.com/users/Jericho/following{/other_user}","gists_url":"https://api.github.com/users/Jericho/gists{/gist_id}","starred_url":"https://api.github.com/users/Jericho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jericho/subscriptions","organizations_url":"https://api.github.com/users/Jericho/orgs","repos_url":"https://api.github.com/users/Jericho/repos","events_url":"https://api.github.com/users/Jericho/events{/privacy}","received_events_url":"https://api.github.com/users/Jericho/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T15:30:13Z","updated_at":"2016-07-25T15:30:13Z","body":"Thank you for considering making these methods virtual."}}
{"actor":{"display_login":"Jericho"}}