Renamed testing projects

This commit is contained in:
2024-12-10 16:55:36 +01:00
parent ee7bf1e204
commit 5f746e0bc1
34 changed files with 27 additions and 27 deletions

View File

@@ -2,11 +2,11 @@ using HopFrame.Api.Logic;
using HopFrame.Database.Models;
using HopFrame.Security.Authorization;
using HopFrame.Security.Claims;
using HopFrame.Testing.Api.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using RestApiTest.Models;
namespace RestApiTest.Controllers;
namespace HopFrame.Testing.Api.Controllers;
[ApiController]
[Route("test")]

View File

@@ -1,8 +1,8 @@
using HopFrame.Database;
using HopFrame.Testing.Api.Models;
using Microsoft.EntityFrameworkCore;
using RestApiTest.Models;
namespace RestApiTest;
namespace HopFrame.Testing.Api;
public class DatabaseContext : HopDbContextBase {
@@ -12,7 +12,7 @@ public class DatabaseContext : HopDbContextBase {
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
base.OnConfiguring(optionsBuilder);
optionsBuilder.UseSqlite(@"Data Source=C:\Users\leon\Documents\Projekte\HopFrame\testing\RestApiTest\bin\Debug\net8.0\test.db;Mode=ReadWrite;");
optionsBuilder.UseSqlite(@"Data Source=C:\Users\leon\Documents\Projekte\HopFrame\testing\HopFrame.Testing.Api\bin\Debug\net8.0\test.db;Mode=ReadWrite;");
}
protected override void OnModelCreating(ModelBuilder modelBuilder) {

View File

@@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace RestApiTest.Models;
namespace HopFrame.Testing.Api.Models;
public class Address {
[ForeignKey("Employee")]

View File

@@ -1,4 +1,4 @@
namespace RestApiTest.Models;
namespace HopFrame.Testing.Api.Models;
public class Employee {
public int EmployeeId { get; set; }

View File

@@ -1,4 +1,4 @@
using RestApiTest;
using HopFrame.Testing.Api;
using HopFrame.Api.Extensions;
using Microsoft.OpenApi.Models;

View File

@@ -1,10 +1,10 @@
using FrontendTest.Providers;
using HopFrame.Web.Admin;
using HopFrame.Web.Admin.Generators;
using HopFrame.Web.Admin.Models;
using RestApiTest.Models;
using HopFrame.Testing.Api.Models;
using HopFrame.Testing.Web.Providers;
namespace FrontendTest;
namespace HopFrame.Testing.Web;
public class AdminContext : AdminPagesContext {

View File

@@ -7,7 +7,7 @@
<base href="/"/>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css"/>
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="FrontendTest.styles.css"/>
<link rel="stylesheet" href="HopFrame.Testing.Web.styles.css"/>
<link rel="icon" type="image/png" href="favicon.png"/>
<HeadOutlet/>
</head>

View File

@@ -6,5 +6,5 @@
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using FrontendTest
@using FrontendTest.Components
@using HopFrame.Testing.Web
@using HopFrame.Testing.Web.Components

View File

@@ -1,8 +1,8 @@
using HopFrame.Database;
using Microsoft.EntityFrameworkCore;
using RestApiTest.Models;
using HopFrame.Testing.Api.Models;
namespace FrontendTest;
namespace HopFrame.Testing.Web;
public class DatabaseContext : HopDbContextBase {
public DbSet<Employee> Employees { get; set; }
@@ -11,7 +11,7 @@ public class DatabaseContext : HopDbContextBase {
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
base.OnConfiguring(optionsBuilder);
optionsBuilder.UseSqlite(@"Data Source=C:\Users\leon\Documents\Projekte\HopFrame\testing\RestApiTest\bin\Debug\net8.0\test.db;Mode=ReadWrite;");
optionsBuilder.UseSqlite(@"Data Source=C:\Users\leon\Documents\Projekte\HopFrame\testing\HopFrame.Testing.Api\bin\Debug\net8.0\test.db;Mode=ReadWrite;");
}
protected override void OnModelCreating(ModelBuilder modelBuilder) {

View File

@@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace RestApiTest.Models;
namespace HopFrame.Testing.Api.Models;
public class Address {
[ForeignKey("Employee")]

View File

@@ -1,4 +1,4 @@
namespace RestApiTest.Models;
namespace HopFrame.Testing.Api.Models;
public class Employee {
public int EmployeeId { get; set; }

View File

@@ -1,5 +1,5 @@
using FrontendTest;
using FrontendTest.Components;
using HopFrame.Testing.Web;
using HopFrame.Testing.Web.Components;
using HopFrame.Web;
using HopFrame.Web.Admin;

View File

@@ -1,8 +1,8 @@
using HopFrame.Web.Admin;
using Microsoft.EntityFrameworkCore;
using RestApiTest.Models;
using HopFrame.Testing.Api.Models;
namespace FrontendTest.Providers;
namespace HopFrame.Testing.Web.Providers;
public class AddressProvider(DatabaseContext context) : ModelProvider<Address> {

View File

@@ -1,8 +1,8 @@
using HopFrame.Web.Admin;
using Microsoft.EntityFrameworkCore;
using RestApiTest.Models;
using HopFrame.Testing.Api.Models;
namespace FrontendTest.Providers;
namespace HopFrame.Testing.Web.Providers;
public class EmployeeProvider(DatabaseContext context) : ModelProvider<Employee> {

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB