File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/ServiceManagement/Services/Commands.Test/Websites Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using Microsoft . Azure . Common . Authentication ;
15
16
using Microsoft . Azure . Common . Authentication . Models ;
16
17
using Microsoft . WindowsAzure . Commands . Common . Properties ;
17
18
using Microsoft . WindowsAzure . Commands . Common . Test . Mocks ;
24
25
using Moq ;
25
26
using System ;
26
27
using System . Collections . Generic ;
28
+ using System . IO ;
27
29
using System . Linq ;
28
30
using Xunit ;
29
31
@@ -130,6 +132,10 @@ public void GetWebsiteProcessShowTest()
130
132
[ Fact ]
131
133
public void ProcessGetWebsiteWithNullSubscription ( )
132
134
{
135
+ currentProfile = new AzureProfile ( Path . Combine ( AzureSession . ProfileDirectory , AzureSession . ProfileFile ) ) ;
136
+ currentProfile . Subscriptions . Clear ( ) ;
137
+ currentProfile . Save ( ) ;
138
+
133
139
// Test
134
140
var getAzureWebsiteCommand = new GetAzureWebsiteCommand
135
141
{
You can’t perform that action at this time.
0 commit comments