public void StringTelemetryRecorder_EventWithAnonymousCollectionTest(string eventName) {
            var telemetryRecorder = new TestTelemetryRecorder();
            telemetryRecorder.RecordEvent(eventName, new { parameter1 = "value1", parameter2 = "value2" });

            string log = telemetryRecorder.SessionLog;
            log.Should().Be(eventName + "\r\n\tparameter1 : value1\r\n\tparameter2 : value2\r\n");
        }
        public void StringTelemetryRecorder_EventWithDictionaryTest(string eventName, string parameter1, string value1, string parameter2, string value2) {
            var telemetryRecorder = new TestTelemetryRecorder();
            telemetryRecorder.RecordEvent(eventName, new Dictionary<string, object>() { { parameter1, value1 }, { parameter2, value2 } });

            string log = telemetryRecorder.SessionLog;
            log.Should().Be(eventName + "\r\n\t" + parameter1 + " : " + value1 + "\r\n\t" + parameter2 + " : " + value2 + "\r\n");
        }
        public void StringTelemetryRecorder_SimpleEventTest(string eventName) {
            var telemetryRecorder = new TestTelemetryRecorder();
            telemetryRecorder.RecordEvent(eventName);

            string log = telemetryRecorder.SessionLog;
            log.Should().Be(eventName + "\r\n");
        }
Exemple #4
0
        public void StringTelemetryRecorder_EventWithAnonymousCollectionTest(string eventName)
        {
            var telemetryRecorder = new TestTelemetryRecorder();

            telemetryRecorder.RecordEvent(eventName, new { parameter1 = "value1", parameter2 = "value2" });

            string log = telemetryRecorder.SessionLog;

            log.Should().Be(eventName + "\r\n\tparameter1 : value1\r\n\tparameter2 : value2\r\n");
        }
Exemple #5
0
        public void StringTelemetryRecorder_SimpleEventTest(string eventName)
        {
            var telemetryRecorder = new TestTelemetryRecorder();

            telemetryRecorder.RecordEvent(eventName);

            string log = telemetryRecorder.SessionLog;

            log.Should().Be(eventName + "\r\n");
        }
Exemple #6
0
        public void StringTelemetryRecorder_EventWithDictionaryTest(string eventName, string parameter1, string value1, string parameter2, string value2)
        {
            var telemetryRecorder = new TestTelemetryRecorder();

            telemetryRecorder.RecordEvent(eventName, new Dictionary <string, object>()
            {
                { parameter1, value1 }, { parameter2, value2 }
            });

            string log = telemetryRecorder.SessionLog;

            log.Should().Be(eventName + "\r\n\t" + parameter1 + " : " + value1 + "\r\n\t" + parameter2 + " : " + value2 + "\r\n");
        }