public GetAzureResourceGroupLogCommandTests()
 {
     resourcesClientMock = new Mock<ResourcesClient>();
     commandRuntimeMock = new Mock<ICommandRuntime>();
     cmdlet = new GetAzureResourceGroupLogCommand()
     {
         CommandRuntime = commandRuntimeMock.Object,
         ResourcesClient = resourcesClientMock.Object
     };
 }
 public GetAzureResourceGroupLogCommandTests()
 {
     resourcesClientMock = new Mock <ResourcesClient>();
     commandRuntimeMock  = new Mock <ICommandRuntime>();
     cmdlet = new GetAzureResourceGroupLogCommand()
     {
         CommandRuntime  = commandRuntimeMock.Object,
         ResourcesClient = resourcesClientMock.Object
     };
 }
        public GetAzureResourceGroupLogCommandTests()
        {
            insightsEventOperationsMock = new Mock <IEventOperations>();
            insightsClientMock          = new Mock <InsightsClient>();
            commandRuntimeMock          = new Mock <ICommandRuntime>();
            cmdlet = new GetAzureResourceGroupLogCommand()
            {
                CommandRuntime = commandRuntimeMock.Object,
                InsightsClient = insightsClientMock.Object
            };

            response = Utilities.InitializeResponse();

            insightsEventOperationsMock.Setup(f => f.ListEventsAsync(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <CancellationToken>()))
            .Returns(Task.FromResult <EventDataListResponse>(response))
            .Callback((string f, string s, CancellationToken t) =>
            {
                filter   = f;
                selected = s;
            });

            insightsClientMock.SetupGet(f => f.EventOperations).Returns(this.insightsEventOperationsMock.Object);
        }