feat: GSS2.Test refactor + ComputeResourcesService

This commit is contained in:
2026-01-26 13:54:29 +03:00
parent d4e7c300f4
commit 58f307c444
25 changed files with 798 additions and 87 deletions
+10 -12
View File
@@ -1,19 +1,17 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Protocols.Configuration;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using GSS2.Core.Hardware;
using GSS2.Core.Analysis.AmineContent.Database;
using GSS2.Test.Views;
using GSS2.Test.ViewModels;
namespace GSS2.Test;
public static class DependencyInjectionHelper
{
public static IServiceCollection AddUi(this IServiceCollection services) =>
public static IServiceCollection AddViewsAndModels(this IServiceCollection services) =>
services
.AddTransient<CameraView>()
.AddTransient<CameraViewModel>()
.AddTransient<MainWindowViewModel>();
.AddSingleton<MainWindowViewModel>()
.AddSingleton<MainView>()
.AddSingleton<MainViewModel>()
.AddSingleton<ResourcesView>()
.AddSingleton<ResourcesViewModel>();
// .AddSingleton<CameraView>()
// .AddSingleton<CameraViewModel>();
}