public void SetupTest() { channel = new SimpleServiceManagement(); mockCommandRuntime = new MockCommandRuntime(); cmdlet = new TestAzureNameCommand (channel) { CommandRuntime = mockCommandRuntime }; Management.Extensions.CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); }
public void SetupTest() { channel = new SimpleServiceManagement(); writer = new FakeWriter(); cmdlet = new TestAzureNameCommand (channel) { Writer = writer }; Management.Extensions.CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); }
public void SetupTest() { channel = new SimpleServiceManagement(); serviceBusChannel = new SimpleServiceBusManagement(); mockCommandRuntime = new MockCommandRuntime(); cmdlet = new TestAzureNameCommand(channel, serviceBusChannel) { CommandRuntime = mockCommandRuntime }; CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); }
public void SetupTest() { clientMock = new Mock <ICloudServiceClient>(); mockCommandRuntime = new MockCommandRuntime(); serviceBusClient = new Mock <ServiceBusClientExtensions>(); cmdlet = new TestAzureNameCommand() { CommandRuntime = mockCommandRuntime, ServiceBusClient = serviceBusClient.Object, CloudServiceClient = clientMock.Object }; }
public void SetupTest() { clientMock = new Mock<ICloudServiceClient>(); mockCommandRuntime = new MockCommandRuntime(); serviceBusClient = new Mock<ServiceBusClientExtensions>(); cmdlet = new TestAzureNameCommand() { CommandRuntime = mockCommandRuntime, ServiceBusClient = serviceBusClient.Object, CloudServiceClient = clientMock.Object }; }
public TestAzureNameTests() { cloudServiceClientMock = new Mock <ICloudServiceClient>(); commandRuntimeMock = new MockCommandRuntime(); serviceBusClientMock = new Mock <ServiceBusClientExtensions>(); websitesClientMock = new Mock <IWebsitesClient>(); cmdlet = new TestAzureNameCommand() { CommandRuntime = commandRuntimeMock, ServiceBusClient = serviceBusClientMock.Object, CloudServiceClient = cloudServiceClientMock.Object, WebsitesClient = websitesClientMock.Object }; }
public void SetupTest() { cloudServiceClientMock = new Mock<ICloudServiceClient>(); commandRuntimeMock = new MockCommandRuntime(); serviceBusClientMock = new Mock<ServiceBusClientExtensions>(); websitesClientMock = new Mock<IWebsitesClient>(); cmdlet = new TestAzureNameCommand() { CommandRuntime = commandRuntimeMock, ServiceBusClient = serviceBusClientMock.Object, CloudServiceClient = cloudServiceClientMock.Object, WebsitesClient = websitesClientMock.Object }; }