C# Class Microsoft.Azure.Commands.Insights.Test.Utilities

显示文件 Open project: Azure/azure-powershell

Public Properties

Property Type Description
Caller string
ContinuationToken string
Correlation string
Name string
ResourceGroup string
ResourceProvider string
ResourceUri string
Status string

Public Methods

Method Description
CreateFakeEvent ( ) : Microsoft.Azure.Insights.Models.EventData
CreateFakeRuleResource ( ) : AlertRuleResource
ExecuteVerifications ( EventCmdletBase cmdlet, Mock insinsightsEventOperationsMockightsClientMock, string requiredFieldName, string requiredFieldValue, ODataQuery &filter, string &selected, System.DateTime startDate, AzureOperationResponse response ) : void
ExecuteVerifications ( ManagementCmdletBase cmdlet, string expectedResourceGroup, string &resourceGroup, string &nameOrTargetUri ) : void
InitializeLogProfileResponse ( ) : AzureOperationResponse
InitializeMetricDefinitionResponse ( ) : MetricDefinitionListResponse
InitializeMetricResponse ( ) : MetricListResponse
InitializeResponse ( ) : AzureOperationResponse>
VerifyCallerInCall ( ODataQuery filter, System.DateTime startDate, string filedName, string fieldValue ) : void
VerifyConditionInFilter ( ODataQuery filter, string field, string value ) : void
VerifyContinuationToken ( AzureOperationResponse response, Mock insinsightsEventOperationsMockightsClientMock, EventCmdletBase cmdlet ) : void
VerifyDetailedOutput ( EventCmdletBase cmdlet, string &selected ) : void
VerifyDetailedOutput ( GetAzureRmAlertRuleCommand cmdlet, string expectedResourceGroup, string &resourceGroup, string &nameOrTargetUri ) : void
VerifyEndDateInFilter ( ODataQuery filter, System.DateTime endDate ) : void
VerifyFieldAndValueInCall ( string filter, string filedName, string fieldValue ) : void
VerifyFilterIsUsable ( ODataQuery filter ) : void
VerifyStartDateInFilter ( ODataQuery filter, System.DateTime startDate ) : void
VerifyStatusAndCallerInCall ( ODataQuery filter, System.DateTime startDate, string filedName, string fieldValue ) : void

Method Details

CreateFakeEvent() public static method

public static CreateFakeEvent ( ) : Microsoft.Azure.Insights.Models.EventData
return Microsoft.Azure.Insights.Models.EventData

CreateFakeRuleResource() public static method

public static CreateFakeRuleResource ( ) : AlertRuleResource
return AlertRuleResource

ExecuteVerifications() public static method

public static ExecuteVerifications ( EventCmdletBase cmdlet, Mock insinsightsEventOperationsMockightsClientMock, string requiredFieldName, string requiredFieldValue, ODataQuery &filter, string &selected, System.DateTime startDate, AzureOperationResponse response ) : void
cmdlet EventCmdletBase
insinsightsEventOperationsMockightsClientMock Mock
requiredFieldName string
requiredFieldValue string
filter ODataQuery
selected string
startDate System.DateTime
response AzureOperationResponse
return void

ExecuteVerifications() public static method

public static ExecuteVerifications ( ManagementCmdletBase cmdlet, string expectedResourceGroup, string &resourceGroup, string &nameOrTargetUri ) : void
cmdlet ManagementCmdletBase
expectedResourceGroup string
resourceGroup string
nameOrTargetUri string
return void

InitializeLogProfileResponse() public static method

public static InitializeLogProfileResponse ( ) : AzureOperationResponse
return AzureOperationResponse

InitializeMetricDefinitionResponse() public static method

public static InitializeMetricDefinitionResponse ( ) : MetricDefinitionListResponse
return MetricDefinitionListResponse

InitializeMetricResponse() public static method

public static InitializeMetricResponse ( ) : MetricListResponse
return MetricListResponse

InitializeResponse() public static method

public static InitializeResponse ( ) : AzureOperationResponse>
return AzureOperationResponse>

VerifyCallerInCall() public static method

public static VerifyCallerInCall ( ODataQuery filter, System.DateTime startDate, string filedName, string fieldValue ) : void
filter ODataQuery
startDate System.DateTime
filedName string
fieldValue string
return void

VerifyConditionInFilter() public static method

public static VerifyConditionInFilter ( ODataQuery filter, string field, string value ) : void
filter ODataQuery
field string
value string
return void

VerifyContinuationToken() public static method

public static VerifyContinuationToken ( AzureOperationResponse response, Mock insinsightsEventOperationsMockightsClientMock, EventCmdletBase cmdlet ) : void
response AzureOperationResponse
insinsightsEventOperationsMockightsClientMock Mock
cmdlet EventCmdletBase
return void

VerifyDetailedOutput() public static method

public static VerifyDetailedOutput ( EventCmdletBase cmdlet, string &selected ) : void
cmdlet EventCmdletBase
selected string
return void

VerifyDetailedOutput() public static method

public static VerifyDetailedOutput ( GetAzureRmAlertRuleCommand cmdlet, string expectedResourceGroup, string &resourceGroup, string &nameOrTargetUri ) : void
cmdlet Microsoft.Azure.Commands.Insights.Alerts.GetAzureRmAlertRuleCommand
expectedResourceGroup string
resourceGroup string
nameOrTargetUri string
return void

VerifyEndDateInFilter() public static method

public static VerifyEndDateInFilter ( ODataQuery filter, System.DateTime endDate ) : void
filter ODataQuery
endDate System.DateTime
return void

VerifyFieldAndValueInCall() public static method

public static VerifyFieldAndValueInCall ( string filter, string filedName, string fieldValue ) : void
filter string
filedName string
fieldValue string
return void

VerifyFilterIsUsable() public static method

public static VerifyFilterIsUsable ( ODataQuery filter ) : void
filter ODataQuery
return void

VerifyStartDateInFilter() public static method

public static VerifyStartDateInFilter ( ODataQuery filter, System.DateTime startDate ) : void
filter ODataQuery
startDate System.DateTime
return void

VerifyStatusAndCallerInCall() public static method

public static VerifyStatusAndCallerInCall ( ODataQuery filter, System.DateTime startDate, string filedName, string fieldValue ) : void
filter ODataQuery
startDate System.DateTime
filedName string
fieldValue string
return void

Property Details

Caller public_oe static_oe property

public static string Caller
return string

ContinuationToken public_oe static_oe property

public static string ContinuationToken
return string

Correlation public_oe static_oe property

public static string Correlation
return string

Name public_oe static_oe property

public static string Name
return string

ResourceGroup public_oe static_oe property

public static string ResourceGroup
return string

ResourceProvider public_oe static_oe property

public static string ResourceProvider
return string

ResourceUri public_oe static_oe property

public static string ResourceUri
return string

Status public_oe static_oe property

public static string Status
return string