-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from RieBi/update-1
Update 1
- Loading branch information
Showing
91 changed files
with
299 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 1 addition & 6 deletions
7
Application/Commands/BattleCommands/CreateNamedBattleCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
namespace Application.Commands.BattleCommands; | ||
public class CreateNamedBattleCommand(int characterId1, int characterId2, string battleName) : IRequest<int> | ||
{ | ||
public int CharacterId1 { get; } = characterId1; | ||
public int CharacterId2 { get; } = characterId2; | ||
public string BattleName { get; } = battleName; | ||
} | ||
public record CreateNamedBattleCommand(int CharacterId1, int CharacterId2, string BattleName) : IRequest<Result<int>>; |
6 changes: 3 additions & 3 deletions
6
Application/Commands/BattleCommands/CreateNamedBattleCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
Application/Commands/BattleCommands/CreateRandomBattleCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
using Data.Models; | ||
|
||
namespace Application.Commands.BattleCommands; | ||
public class CreateRandomBattleCommand(int characterId) : IRequest<int> | ||
{ | ||
public int CharacterId { get; set; } = characterId; | ||
} | ||
namespace Application.Commands.BattleCommands; | ||
public record CreateRandomBattleCommand(int CharacterId) : IRequest<int>; |
3 changes: 1 addition & 2 deletions
3
Application/Commands/BattleCommands/CreateRandomBattleCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
Application/Commands/BattleCommands/CreateSpecificBattleCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
namespace Application.Commands.BattleCommands; | ||
public class CreateSpecificBattleCommand(int characterAId, int characterBId) : IRequest<int> | ||
{ | ||
public int CharacterAId { get; set; } = characterAId; | ||
public int CharacterBId { get; set; } = characterBId; | ||
} | ||
public record CreateSpecificBattleCommand(int CharacterAId, int CharacterBId) : IRequest<Result<int>>; |
9 changes: 4 additions & 5 deletions
9
Application/Commands/BattleCommands/CreateSpecificBattleCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
Application/Commands/CharacterCommands/CreateCharacterCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
using System.Security.Claims; | ||
|
||
namespace Application.Commands.CharacterCommands; | ||
public class CreateCharacterCommand(CharacterCreateDto characterCreateDto, ClaimsPrincipal user) : IRequest<int> | ||
{ | ||
public CharacterCreateDto CharacterCreateDto { get; } = characterCreateDto; | ||
public ClaimsPrincipal User { get; } = user; | ||
} | ||
public record CreateCharacterCommand(CharacterCreateDto CharacterCreateDto, ClaimsPrincipal User) : IRequest<Result<int>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/CharacterCommands/DeleteCharacterCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
namespace Application.Commands.CharacterCommands; | ||
public class DeleteCharacterCommand(int id) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
} | ||
public record DeleteCharacterCommand(int Id) : IRequest<Unit>; |
2 changes: 1 addition & 1 deletion
2
Application/Commands/CharacterCommands/DeleteCharacterCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
Application/Commands/CharacterCommands/EditCharacterCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
namespace Application.Commands.CharacterCommands; | ||
public class EditCharacterCommand(int id, CharacterCreateDto characterCreateDto) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
public CharacterCreateDto characterCreateDto { get; } = characterCreateDto; | ||
} | ||
public record EditCharacterCommand(int Id, CharacterCreateDto CharacterCreateDto) : IRequest<Unit>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
using System.Security.Claims; | ||
|
||
namespace Application.Commands.CountryCommands; | ||
public class CreateCountryCommand(CountryCreateDto countryCreateDto, ClaimsPrincipal user) : IRequest<int> | ||
{ | ||
public CountryCreateDto CountryCreateDto { get; } = countryCreateDto; | ||
public ClaimsPrincipal User { get; } = user; | ||
} | ||
public record CreateCountryCommand(CountryCreateDto CountryCreateDto, ClaimsPrincipal User) : IRequest<Result<int>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
namespace Application.Commands.CountryCommands; | ||
public class DeleteCountryCommand(int id) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
} | ||
public record DeleteCountryCommand(int Id) : IRequest<Unit>; |
2 changes: 1 addition & 1 deletion
2
Application/Commands/CountryCommands/DeleteCountryCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
namespace Application.Commands.CountryCommands; | ||
public class EditCountryCommand(int id, CountryCreateDto countryCreateDto) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
public CountryCreateDto CountryCreateDto { get; } = countryCreateDto; | ||
} | ||
public record EditCountryCommand(int Id, CountryCreateDto CountryCreateDto) : IRequest<Unit>; |
4 changes: 1 addition & 3 deletions
4
Application/Commands/CountryCommands/EditCountryCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/NaturalResourceCommands/CreateNaturalResourceCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
using Data.Models; | ||
|
||
namespace Application.Commands.NaturalResourceCommands; | ||
public class CreateNaturalResourceCommand(NaturalResource resource) : IRequest<int> | ||
{ | ||
public NaturalResource Resource { get; } = resource; | ||
} | ||
public record CreateNaturalResourceCommand(NaturalResource Resource) : IRequest<int>; |
4 changes: 2 additions & 2 deletions
4
Application/Commands/NaturalResourceCommands/CreateNaturalResourceCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/NaturalResourceCommands/DeleteNaturalResourceCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
namespace Application.Commands.NaturalResourceCommands; | ||
public class DeleteNaturalResourceCommand(int id) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
} | ||
public record DeleteNaturalResourceCommand(int Id) : IRequest<Unit>; |
2 changes: 1 addition & 1 deletion
2
Application/Commands/NaturalResourceCommands/DeleteNaturalResourceCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/NaturalResourceCommands/EditNaturalResourceCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
using Data.Models; | ||
|
||
namespace Application.Commands.NaturalResourceCommands; | ||
public class EditNaturalResourceCommand(NaturalResource naturalResource) : IRequest<Unit> | ||
{ | ||
public NaturalResource Resource { get; } = naturalResource; | ||
} | ||
public record EditNaturalResourceCommand(NaturalResource Resource) : IRequest<Unit>; |
2 changes: 1 addition & 1 deletion
2
Application/Commands/NaturalResourceCommands/EditNaturalResourceCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/SpecialtyCommands/CreateSpecialtyCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
using Data.Models; | ||
|
||
namespace Application.Commands.SpecialtyCommands; | ||
public class CreateSpecialtyCommand(Specialty specialty) : IRequest<int> | ||
{ | ||
public Specialty Specialty { get; } = specialty; | ||
} | ||
public record CreateSpecialtyCommand(Specialty Specialty) : IRequest<int>; |
4 changes: 2 additions & 2 deletions
4
Application/Commands/SpecialtyCommands/CreateSpecialtyCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Application/Commands/SpecialtyCommands/DeleteSpecialtyCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
namespace Application.Commands.SpecialtyCommands; | ||
public class DeleteSpecialtyCommand(int id) : IRequest<Unit> | ||
{ | ||
public int Id { get; } = id; | ||
} | ||
public record DeleteSpecialtyCommand(int Id) : IRequest<Unit>; |
Oops, something went wrong.