File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages
test/AzureOpenAIProxy.AppHost.Tests/PlaygroundApp/Components/Pages Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ @page " /playground"
2+
3+ <PageTitle >Playground Page</PageTitle >
4+
5+ <h1 >playground page!</h1 >
Original file line number Diff line number Diff line change 1+ using AzureOpenAIProxy . AppHost . Tests . Fixtures ;
2+
3+ namespace AzureOpenAIProxy . AppHost . Tests . PlaygroundApp . Components . Pages ;
4+
5+ public class PlaygroundPageTest ( AspireAppHostFixture host ) : IClassFixture < AspireAppHostFixture >
6+ {
7+ [ Fact ]
8+ public async Task Given_Resource_When_Invoked_Endpoint_Then_It_Should_Return_OK ( )
9+ {
10+ // Arrange
11+ var client = host . App ! . CreateHttpClient ( "playgroundapp" ) ;
12+
13+ // Act
14+ var response = await client . GetAsync ( "/playground" ) ;
15+
16+ // Assert
17+ response . EnsureSuccessStatusCode ( ) ; // Status Code 200-299
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments