// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Concurrent; using System.Collections.Generic; using Microsoft.DotNet.Cli; namespace Microsoft.DotNet.Cli.MSBuild.IntegrationTests { public class FakeRecordEventNameTelemetry { public bool Enabled { get; set; } public string EventName { get; set; } public void TrackEvent(string eventName, IDictionary properties, IDictionary measurements) { LogEntries.Add( new LogEntry { EventName = eventName, Measurement = measurements, Properties = properties }); } public ConcurrentBag LogEntries { get; set; } = new ConcurrentBag(); public class LogEntry { public string EventName { get; set; } public IDictionary Properties { get; set; } public IDictionary Measurement { get; set; } } } }