Skip to content

Commit 16e3f64

Browse files
authored
PaArchive and PaArchivePath (#782)
1 parent 51721a9 commit 16e3f64

36 files changed

Lines changed: 2057 additions & 954 deletions

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,9 @@ MigrationBackup/
361361

362362
# Ionide (cross platform F# VS Code tools) working folder
363363
.ionide/
364+
365+
366+
# ** Repo-specific **
367+
# Ignore local Claude settings and temp files
368+
**/.claude/settings.local.json
369+
tmpclaude-*

‎docs/layouts/README.md‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎docs/layouts/funnel.jpg‎

-38.9 KB
Binary file not shown.

‎docs/layouts/funnel.md‎

Lines changed: 0 additions & 84 deletions
This file was deleted.

‎docs/layouts/paste.jpg‎

-17.4 KB
Binary file not shown.

‎docs/layouts/pyramid.jpg‎

-39.7 KB
Binary file not shown.

‎docs/layouts/pyramid.md‎

Lines changed: 0 additions & 84 deletions
This file was deleted.

‎src/PASopa.sln‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ EndProject
2323
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{7361DB16-D534-4E0E-8597-BE22317DEF47}"
2424
ProjectSection(SolutionItems) = preProject
2525
Directory.Build.props = Directory.Build.props
26-
Versions.props = Versions.props
26+
Directory.Packages.props = Directory.Packages.props
2727
EndProjectSection
2828
EndProject
29-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlValidator", "YamlValidator\Microsoft.PowerPlatform.PowerApps.YamlValidator.csproj", "{296D952B-C284-4AAB-9A79-59538CA7BF38}"
29+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.PowerPlatform.PowerApps.YamlValidator", "YamlValidator\Microsoft.PowerPlatform.PowerApps.YamlValidator.csproj", "{296D952B-C284-4AAB-9A79-59538CA7BF38}"
3030
EndProject
3131
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlValidator.Tests", "YamlValidator.Tests\YamlValidator.Tests.csproj", "{E6180C81-59C1-4B25-90E0-E4390D455518}"
3232
EndProject
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using Microsoft.Extensions.Logging;
5+
6+
namespace Persistence.Tests;
7+
8+
/// <summary>
9+
/// A logger implementation which captures log entries so they can be inspected in tests.
10+
/// </summary>
11+
internal sealed class CapturingLogger<T> : ILogger<T>
12+
{
13+
public record LogEntry(LogLevel Level, string Message);
14+
15+
private readonly List<LogEntry> _entries = [];
16+
17+
public IReadOnlyList<LogEntry> Entries => _entries;
18+
19+
public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
20+
21+
public bool IsEnabled(LogLevel logLevel) => true;
22+
23+
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
24+
{
25+
_entries.Add(new(logLevel, formatter(state, exception)));
26+
}
27+
}

0 commit comments

Comments
 (0)