public void AggregationSetKeyCounterNameSingleProp() { var telemetryClient = new TelemetryClient(); int key1 = AggregationSet.GetKey(telemetryClient, "Agg1"); int key2 = AggregationSet.GetKey(telemetryClient, "Agg1"); int key3 = AggregationSet.GetKey(telemetryClient, "Agg1"); Assert.AreEqual(key1, key2); Assert.AreEqual(key2, key3); }
public void AggregationSetKeyTelemetryClient() { var telemetryClient1 = new TelemetryClient(); var telemetryClient2 = new TelemetryClient(); int key1 = AggregationSet.GetKey(telemetryClient1, "Agg1"); int key2 = AggregationSet.GetKey(telemetryClient1, "Agg1"); int key3 = AggregationSet.GetKey(telemetryClient2, "Agg1"); Assert.AreEqual(key1, key2); Assert.AreNotEqual(key2, key3); }