Repository files navigation BestCard: A Monster Card Game
install postgresql using docker in /db/docker-pg-db.yml
open BestCard/BestCard.sln and run server
Server.cs Class adds Routes by calling AddRoute() function (passes function to be executed when client connects to Endpoints).
UserService.cs, CardService.cs, BattleService.cs are used to handle Database functions
BattleController.cs responsible for lobby and Initating battle when two players match
CardModel, BattleModel and UserModel are representations of database tables
BattleTest()
AddPlayerToLobbyTest()
DatabaseAccessTest()
NoSessionTest()
CreateUserTest()
LoginUserTest()
AddPackagesTest()
AcquirePackageTest()
CheckAdminTest()
HashPasswordTest()
GenerateTokenTest()
GetUsernameTest()
UpdateCreditsTest()
GetCardsByUserIdTest()
SetDeckByUserIdFailTest()
SetDeckByUserIdTest()
GetDeckByUserIdTest()
UserModelConstructorTest()
UserCredentialsConstructorTest()
ResetDatabaseTest()
InitDatabase()
You can’t perform that action at this time.