diff --git a/wolverine/a-frame-architecture/.idea/.idea.a-frame-architecture/.idea/mise.xml b/wolverine/a-frame-architecture/.idea/.idea.a-frame-architecture/.idea/mise.xml index 9e95bab..a5fff2e 100644 --- a/wolverine/a-frame-architecture/.idea/.idea.a-frame-architecture/.idea/mise.xml +++ b/wolverine/a-frame-architecture/.idea/.idea.a-frame-architecture/.idea/mise.xml @@ -2,5 +2,6 @@ \ No newline at end of file diff --git a/wolverine/a-frame-architecture/FinancialApi.Application/ApplyFeeHandler.cs b/wolverine/a-frame-architecture/FinancialApi.Application/ApplyFeeHandler.cs index fc1c144..d9d5e04 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Application/ApplyFeeHandler.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Application/ApplyFeeHandler.cs @@ -1,5 +1,7 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; using FinancialApi.Domain; -using Wolverine.Attributes; using Wolverine.Persistence; namespace FinancialApi.Application; diff --git a/wolverine/a-frame-architecture/FinancialApi.Application/ReverseJournalHandler.cs b/wolverine/a-frame-architecture/FinancialApi.Application/ReverseJournalHandler.cs index 5ace1a9..d4158dd 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Application/ReverseJournalHandler.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Application/ReverseJournalHandler.cs @@ -1,3 +1,7 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; using FinancialApi.Domain; using Wolverine.Persistence; diff --git a/wolverine/a-frame-architecture/FinancialApi.Application/TransferFundsHandler.cs b/wolverine/a-frame-architecture/FinancialApi.Application/TransferFundsHandler.cs index f011ceb..a7c902b 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Application/TransferFundsHandler.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Application/TransferFundsHandler.cs @@ -1,5 +1,7 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; using FinancialApi.Domain; -using Wolverine.Attributes; using Wolverine.Persistence; namespace FinancialApi.Application; diff --git a/wolverine/a-frame-architecture/FinancialApi.Domain/Account.cs b/wolverine/a-frame-architecture/FinancialApi.Domain/Account.cs index 0d4d592..478e6f3 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Domain/Account.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Domain/Account.cs @@ -1,4 +1,6 @@ -namespace FinancialApi.Domain; +using System; + +namespace FinancialApi.Domain; public record Account(int Id, decimal Balance, string AccountType) { diff --git a/wolverine/a-frame-architecture/FinancialApi.Domain/BalancedJournal.cs b/wolverine/a-frame-architecture/FinancialApi.Domain/BalancedJournal.cs index 07c9435..e10bde2 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Domain/BalancedJournal.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Domain/BalancedJournal.cs @@ -1,3 +1,7 @@ +using System; +using System.Collections.Generic; +using System.Linq; + namespace FinancialApi.Domain; public record BalancedJournal diff --git a/wolverine/a-frame-architecture/FinancialApi.Domain/JournalEntry.cs b/wolverine/a-frame-architecture/FinancialApi.Domain/JournalEntry.cs index 649fe2f..7f39007 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Domain/JournalEntry.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Domain/JournalEntry.cs @@ -1,3 +1,6 @@ +using System; +using System.Collections.Generic; + namespace FinancialApi.Domain; public record JournalEntry diff --git a/wolverine/a-frame-architecture/FinancialApi.Infrastructure/AccountQuery.cs b/wolverine/a-frame-architecture/FinancialApi.Infrastructure/AccountQuery.cs index 273c109..34d9827 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Infrastructure/AccountQuery.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Infrastructure/AccountQuery.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using FinancialApi.Application; using FinancialApi.Domain; using Microsoft.EntityFrameworkCore; @@ -8,6 +9,7 @@ public class AccountQuery(AccountDbContext db) : IAccountQuery { public Task FindByIdAsync(int id) { - return db.Accounts.AsNoTracking().FirstOrDefaultAsync(x => x.Id == id); + return db.Accounts.AsNoTracking() + .FirstOrDefaultAsync(x => x.Id == id); } } \ No newline at end of file diff --git a/wolverine/a-frame-architecture/FinancialApi.Infrastructure/ReversalQuery.cs b/wolverine/a-frame-architecture/FinancialApi.Infrastructure/ReversalQuery.cs index 7daeaad..e8dad99 100644 --- a/wolverine/a-frame-architecture/FinancialApi.Infrastructure/ReversalQuery.cs +++ b/wolverine/a-frame-architecture/FinancialApi.Infrastructure/ReversalQuery.cs @@ -1,3 +1,6 @@ +using System; +using System.Linq; +using System.Threading.Tasks; using FinancialApi.Application; using Microsoft.EntityFrameworkCore; diff --git a/wolverine/a-frame-architecture/FinancialApi/DemoEventStore.cs b/wolverine/a-frame-architecture/FinancialApi/DemoEventStore.cs index 772ba53..a7d8b11 100644 --- a/wolverine/a-frame-architecture/FinancialApi/DemoEventStore.cs +++ b/wolverine/a-frame-architecture/FinancialApi/DemoEventStore.cs @@ -1,3 +1,5 @@ +using System; +using System.Collections.Generic; using FinancialApi.Application; namespace FinancialApi; diff --git a/wolverine/a-frame-architecture/FinancialApi/DomainExceptionHandler.cs b/wolverine/a-frame-architecture/FinancialApi/DomainExceptionHandler.cs index c7bdd97..857d55e 100644 --- a/wolverine/a-frame-architecture/FinancialApi/DomainExceptionHandler.cs +++ b/wolverine/a-frame-architecture/FinancialApi/DomainExceptionHandler.cs @@ -1,4 +1,8 @@ +using System; +using System.Threading; +using System.Threading.Tasks; using Microsoft.AspNetCore.Diagnostics; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace FinancialApi; diff --git a/wolverine/a-frame-architecture/FinancialApi/Program.cs b/wolverine/a-frame-architecture/FinancialApi/Program.cs index a4aee3a..1d52173 100644 --- a/wolverine/a-frame-architecture/FinancialApi/Program.cs +++ b/wolverine/a-frame-architecture/FinancialApi/Program.cs @@ -2,9 +2,12 @@ using FinancialApi; using FinancialApi.Application; using FinancialApi.Infrastructure; using FinancialApi.ServiceDefaults; -using JasperFx.CodeGeneration; using JasperFx.Resources; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; using Wolverine; using Wolverine.EntityFrameworkCore; using Wolverine.Sqlite; diff --git a/wolverine/a-frame-architecture/mise.toml b/wolverine/a-frame-architecture/mise.toml index 8564871..b81001a 100644 --- a/wolverine/a-frame-architecture/mise.toml +++ b/wolverine/a-frame-architecture/mise.toml @@ -1,7 +1,14 @@ -[tasks.build] -description = "Build the Project" -run = "dotnet build" +[tools] +dotnet = "10" [tasks.restore] description = "Restore the Project" run = "dotnet restore" + +[tasks.build] +depends = ["restore"] +description = "Build the Project" +run = "dotnet build" + +[tasks.clean] +run = "fd -I \"bin|obj\" -td -X rm -r && dotnet clean"