{"action":"closed","issue":{"url":"https://api.github.com/repos/pester/Pester/issues/600","repository_url":"https://api.github.com/repos/pester/Pester","labels_url":"https://api.github.com/repos/pester/Pester/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/pester/Pester/issues/600/comments","events_url":"https://api.github.com/repos/pester/Pester/issues/600/events","html_url":"https://github.com/pester/Pester/issues/600","id":173600042,"number":600,"title":"Problems Mocking Set-AzureRmVirtualNetwork","user":{"login":"dacarab","id":17568836,"avatar_url":"https://avatars.githubusercontent.com/u/17568836?v=3","gravatar_id":"","url":"https://api.github.com/users/dacarab","html_url":"https://github.com/dacarab","followers_url":"https://api.github.com/users/dacarab/followers","following_url":"https://api.github.com/users/dacarab/following{/other_user}","gists_url":"https://api.github.com/users/dacarab/gists{/gist_id}","starred_url":"https://api.github.com/users/dacarab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacarab/subscriptions","organizations_url":"https://api.github.com/users/dacarab/orgs","repos_url":"https://api.github.com/users/dacarab/repos","events_url":"https://api.github.com/users/dacarab/events{/privacy}","received_events_url":"https://api.github.com/users/dacarab/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-27T15:01:05Z","updated_at":"2016-08-27T19:35:12Z","closed_at":"2016-08-27T19:35:12Z","body":"Not sure if I am missing something here or if this is related to #491 \r\n\r\nI'm getting prompted to provide a PSVirtualNetwork object when running the below:\r\n```\r\nRemove-Module Pester -ErrorAction:SilentlyContinue\r\nRemove-Module Azure* -ErrorAction:SilentlyContinue\r\n\r\nImport-Module AzureRm.Profile -RequiredVersion 2.0.1\r\nImport-Module AzureRm.Network -RequiredVersion 2.0.1\r\nImport-Module Pester -RequiredVersion 3.4.3\r\n\r\nDescribe \"Testing AzureRm Mocks\" {\r\n    Mock Get-AzureRmVirtualNetwork {\r\n        Return \"Get-VNet Mock\"\r\n    }\r\n\r\n    Mock Set-AzureRmVirtualNetwork {\r\n        Return \"Set-VNet Mock\"\r\n    }\r\n\r\n    It \"Should Mock Get-AzureRmVirtualNetwork\" {\r\n        Get-AzureRmVirtualNetwork | Should Be \"Get-VNet Mock\"\r\n        Assert-MockCalled -Times 1 -CommandName Get-AzureRmVirtualNetwork\r\n    }\r\n\r\n    It \"Should Mock Set-AzureRmVirtualNetwork\" {\r\n        Set-AzureRmVirtualNetwork | Should Be \"Set-VNet Mock\"\r\n        Assert-MockCalled -Times 1 -CommandName Set-AzureRmVirtualNetwork\r\n    }\r\n}\r\n```\r\nThe output is \r\n```\r\nDescribing Testing AzureRm Mocks\r\n [+] Should Mock Get-AzureRmVirtualNetwork 66ms\r\ncmdlet Set-AzureRmVirtualNetwork at command pipeline position 1\r\nSupply values for the following parameters:\r\n(Type !? for Help.)\r\nVirtualNetwork: \r\n```\r\nIt sits there prompting for input for the VirtualNetwork parameter. "}}
{"actor":{"display_login":"dacarab"}}