| File: Shared\TestBrowserFile.cs | Web Access |
| Project: src\tests\Aspire.Dashboard.Components.Tests\Aspire.Dashboard.Components.Tests.csproj (Aspire.Dashboard.Components.Tests) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Components.Forms; namespace Aspire.Dashboard.Components.Tests.Shared; internal sealed class TestBrowserFile(string name) : IBrowserFile { public string Name { get; } = name; public DateTimeOffset LastModified { get; } = DateTimeOffset.UnixEpoch; public long Size => 0; public string ContentType => "text/plain"; public Stream OpenReadStream(long maxAllowedSize = 512000, CancellationToken cancellationToken = default) => new MemoryStream(); }