{"action":"created","issue":{"url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/355","repository_url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions","labels_url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/355/comments","events_url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/355/events","html_url":"https://github.com/System-IO-Abstractions/System.IO.Abstractions/issues/355","id":363566872,"node_id":"MDU6SXNzdWUzNjM1NjY4NzI=","number":355,"title":"Breaking change in version 2.1.0.230","user":{"login":"LinusNoren","id":1798999,"node_id":"MDQ6VXNlcjE3OTg5OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1798999?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusNoren","html_url":"https://github.com/LinusNoren","followers_url":"https://api.github.com/users/LinusNoren/followers","following_url":"https://api.github.com/users/LinusNoren/following{/other_user}","gists_url":"https://api.github.com/users/LinusNoren/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusNoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusNoren/subscriptions","organizations_url":"https://api.github.com/users/LinusNoren/orgs","repos_url":"https://api.github.com/users/LinusNoren/repos","events_url":"https://api.github.com/users/LinusNoren/events{/privacy}","received_events_url":"https://api.github.com/users/LinusNoren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-25T13:01:13Z","updated_at":"2018-09-25T22:03:32Z","closed_at":null,"author_association":"NONE","body":"Before version 2.1.0.230 you could do this:\r\n`_fileSystem = new Mock<IFileSystem>();`\r\n`_fileSystem.Setup(x => x.Directory.Exists(It.IsAny<string>())).Returns(true);`\r\n\r\nBut that doesn't work any longer, you get this error:\r\n> Castle.DynamicProxy.InvalidProxyConstructorArgumentsException: Can not instantiate proxy of class: System.IO.Abstractions.DirectoryBase.\r\nCould not find a parameterless constructor..\r\n\r\nHow should you write this code to get this to work now?"},"comment":{"url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/comments/424517133","html_url":"https://github.com/System-IO-Abstractions/System.IO.Abstractions/issues/355#issuecomment-424517133","issue_url":"https://api.github.com/repos/System-IO-Abstractions/System.IO.Abstractions/issues/355","id":424517133,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDUxNzEzMw==","user":{"login":"fgreinacher","id":1540469,"node_id":"MDQ6VXNlcjE1NDA0Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/1540469?v=4","gravatar_id":"","url":"https://api.github.com/users/fgreinacher","html_url":"https://github.com/fgreinacher","followers_url":"https://api.github.com/users/fgreinacher/followers","following_url":"https://api.github.com/users/fgreinacher/following{/other_user}","gists_url":"https://api.github.com/users/fgreinacher/gists{/gist_id}","starred_url":"https://api.github.com/users/fgreinacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgreinacher/subscriptions","organizations_url":"https://api.github.com/users/fgreinacher/orgs","repos_url":"https://api.github.com/users/fgreinacher/repos","events_url":"https://api.github.com/users/fgreinacher/events{/privacy}","received_events_url":"https://api.github.com/users/fgreinacher/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T22:03:32Z","updated_at":"2018-09-25T22:03:32Z","author_association":"COLLABORATOR","body":"Could we for this use case have an internal parameterless constructor and expose it to Moq/Castle Core via `InternalsVisibleTo`?"}}
{"actor":{"display_login":"fgreinacher"}}