Renamed testing projects
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Database", "src\HopFrame.Database\HopFrame.Database.csproj", "{003120AE-F38B-4632-8497-BE4505189627}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Database", "src\HopFrame.Database\HopFrame.Database.csproj", "{003120AE-F38B-4632-8497-BE4505189627}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestApiTest", "testing\RestApiTest\RestApiTest.csproj", "{921159CE-AF75-44C3-A3F9-6B9B1A4E85CF}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Testing.Api", "testing\HopFrame.Testing.Api\HopFrame.Testing.Api.csproj", "{921159CE-AF75-44C3-A3F9-6B9B1A4E85CF}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Security", "src\HopFrame.Security\HopFrame.Security.csproj", "{7F82E1C6-4A42-4337-9E03-2EE6429D004F}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Security", "src\HopFrame.Security\HopFrame.Security.csproj", "{7F82E1C6-4A42-4337-9E03-2EE6429D004F}"
|
||||||
EndProject
|
EndProject
|
||||||
@@ -10,7 +10,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Api", "src\HopFram
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Web", "src\HopFrame.Web\HopFrame.Web.csproj", "{3BE585BC-13A5-4BE4-A806-E9EC2D825956}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Web", "src\HopFrame.Web\HopFrame.Web.csproj", "{3BE585BC-13A5-4BE4-A806-E9EC2D825956}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FrontendTest", "testing\FrontendTest\FrontendTest.csproj", "{8F983A37-63CF-48D5-988D-58B78EF8AECD}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Testing.Web", "testing\HopFrame.Testing.Web\HopFrame.Testing.Web.csproj", "{8F983A37-63CF-48D5-988D-58B78EF8AECD}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Web.Admin", "src\HopFrame.Web.Admin\HopFrame.Web.Admin.csproj", "{02D9F10A-664A-4EF7-BF19-310C26FF4DEB}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HopFrame.Web.Admin", "src\HopFrame.Web.Admin\HopFrame.Web.Admin.csproj", "{02D9F10A-664A-4EF7-BF19-310C26FF4DEB}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ using HopFrame.Api.Logic;
|
|||||||
using HopFrame.Database.Models;
|
using HopFrame.Database.Models;
|
||||||
using HopFrame.Security.Authorization;
|
using HopFrame.Security.Authorization;
|
||||||
using HopFrame.Security.Claims;
|
using HopFrame.Security.Claims;
|
||||||
|
using HopFrame.Testing.Api.Models;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using RestApiTest.Models;
|
|
||||||
|
|
||||||
namespace RestApiTest.Controllers;
|
namespace HopFrame.Testing.Api.Controllers;
|
||||||
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("test")]
|
[Route("test")]
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using HopFrame.Database;
|
using HopFrame.Database;
|
||||||
|
using HopFrame.Testing.Api.Models;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using RestApiTest.Models;
|
|
||||||
|
|
||||||
namespace RestApiTest;
|
namespace HopFrame.Testing.Api;
|
||||||
|
|
||||||
public class DatabaseContext : HopDbContextBase {
|
public class DatabaseContext : HopDbContextBase {
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ public class DatabaseContext : HopDbContextBase {
|
|||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
||||||
base.OnConfiguring(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) {
|
protected override void OnModelCreating(ModelBuilder modelBuilder) {
|
||||||
@@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||||
|
|
||||||
namespace RestApiTest.Models;
|
namespace HopFrame.Testing.Api.Models;
|
||||||
|
|
||||||
public class Address {
|
public class Address {
|
||||||
[ForeignKey("Employee")]
|
[ForeignKey("Employee")]
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace RestApiTest.Models;
|
namespace HopFrame.Testing.Api.Models;
|
||||||
|
|
||||||
public class Employee {
|
public class Employee {
|
||||||
public int EmployeeId { get; set; }
|
public int EmployeeId { get; set; }
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
using RestApiTest;
|
using HopFrame.Testing.Api;
|
||||||
using HopFrame.Api.Extensions;
|
using HopFrame.Api.Extensions;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi.Models;
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using FrontendTest.Providers;
|
|
||||||
using HopFrame.Web.Admin;
|
using HopFrame.Web.Admin;
|
||||||
using HopFrame.Web.Admin.Generators;
|
using HopFrame.Web.Admin.Generators;
|
||||||
using HopFrame.Web.Admin.Models;
|
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 {
|
public class AdminContext : AdminPagesContext {
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<base href="/"/>
|
<base href="/"/>
|
||||||
<link rel="stylesheet" href="bootstrap/bootstrap.min.css"/>
|
<link rel="stylesheet" href="bootstrap/bootstrap.min.css"/>
|
||||||
<link rel="stylesheet" href="app.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"/>
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||||
<HeadOutlet/>
|
<HeadOutlet/>
|
||||||
</head>
|
</head>
|
||||||
@@ -6,5 +6,5 @@
|
|||||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
@using FrontendTest
|
@using HopFrame.Testing.Web
|
||||||
@using FrontendTest.Components
|
@using HopFrame.Testing.Web.Components
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using HopFrame.Database;
|
using HopFrame.Database;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using RestApiTest.Models;
|
using HopFrame.Testing.Api.Models;
|
||||||
|
|
||||||
namespace FrontendTest;
|
namespace HopFrame.Testing.Web;
|
||||||
|
|
||||||
public class DatabaseContext : HopDbContextBase {
|
public class DatabaseContext : HopDbContextBase {
|
||||||
public DbSet<Employee> Employees { get; set; }
|
public DbSet<Employee> Employees { get; set; }
|
||||||
@@ -11,7 +11,7 @@ public class DatabaseContext : HopDbContextBase {
|
|||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
||||||
base.OnConfiguring(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) {
|
protected override void OnModelCreating(ModelBuilder modelBuilder) {
|
||||||
@@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||||
|
|
||||||
namespace RestApiTest.Models;
|
namespace HopFrame.Testing.Api.Models;
|
||||||
|
|
||||||
public class Address {
|
public class Address {
|
||||||
[ForeignKey("Employee")]
|
[ForeignKey("Employee")]
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace RestApiTest.Models;
|
namespace HopFrame.Testing.Api.Models;
|
||||||
|
|
||||||
public class Employee {
|
public class Employee {
|
||||||
public int EmployeeId { get; set; }
|
public int EmployeeId { get; set; }
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
using FrontendTest;
|
using HopFrame.Testing.Web;
|
||||||
using FrontendTest.Components;
|
using HopFrame.Testing.Web.Components;
|
||||||
using HopFrame.Web;
|
using HopFrame.Web;
|
||||||
using HopFrame.Web.Admin;
|
using HopFrame.Web.Admin;
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using HopFrame.Web.Admin;
|
using HopFrame.Web.Admin;
|
||||||
using Microsoft.EntityFrameworkCore;
|
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> {
|
public class AddressProvider(DatabaseContext context) : ModelProvider<Address> {
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using HopFrame.Web.Admin;
|
using HopFrame.Web.Admin;
|
||||||
using Microsoft.EntityFrameworkCore;
|
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> {
|
public class EmployeeProvider(DatabaseContext context) : ModelProvider<Employee> {
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user