- Added "StellaOps.Policy.Engine", "StellaOps.Cartographer", and "StellaOps.SbomService" projects to the StellaOps solution. - Created AGENTS.md to outline the Contract Testing Guild Charter, detailing mission, scope, and definition of done. - Established TASKS.md for the Contract Testing Task Board, outlining tasks for Sprint 62 and Sprint 63 related to mock servers and replay testing.
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| var builder = WebApplication.CreateBuilder(args);
 | |
| 
 | |
| // Add services to the container.
 | |
| // Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
 | |
| builder.Services.AddOpenApi();
 | |
| 
 | |
| var app = builder.Build();
 | |
| 
 | |
| // Configure the HTTP request pipeline.
 | |
| if (app.Environment.IsDevelopment())
 | |
| {
 | |
|     app.MapOpenApi();
 | |
| }
 | |
| 
 | |
| app.UseHttpsRedirection();
 | |
| 
 | |
| var summaries = new[]
 | |
| {
 | |
|     "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
 | |
| };
 | |
| 
 | |
| app.MapGet("/weatherforecast", () =>
 | |
| {
 | |
|     var forecast =  Enumerable.Range(1, 5).Select(index =>
 | |
|         new WeatherForecast
 | |
|         (
 | |
|             DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
 | |
|             Random.Shared.Next(-20, 55),
 | |
|             summaries[Random.Shared.Next(summaries.Length)]
 | |
|         ))
 | |
|         .ToArray();
 | |
|     return forecast;
 | |
| })
 | |
| .WithName("GetWeatherForecast");
 | |
| 
 | |
| app.Run();
 | |
| 
 | |
| record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
 | |
| {
 | |
|     public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
 | |
| }
 |