-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/Microsoft.Health.Dicom.Core.UnitTests/Features/Diagnostic/MockTelemetryChannel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. | ||
// ------------------------------------------------------------------------------------------------- | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.ApplicationInsights.Channel; | ||
|
||
namespace Microsoft.Health.Dicom.Core.UnitTests.Features.Diagnostic; | ||
|
||
internal class MockTelemetryChannel : ITelemetryChannel | ||
{ | ||
public IList<ITelemetry> Items { get; private set; } = new List<ITelemetry>(); | ||
|
||
public void Send(ITelemetry item) | ||
{ | ||
Items.Add(item); | ||
} | ||
|
||
public void Flush() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public bool? DeveloperMode { get; set; } | ||
public string EndpointAddress { get; set; } | ||
|
||
public void Dispose() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |