Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/add enviroment variables file #31

Merged
merged 2 commits into from
Sep 4, 2024

fix: add a .env.template file

1f09285
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Refactor/add enviroment variables file #31

fix: add a .env.template file
1f09285
Select commit
Loading
Failed to load commit list.
GitHub Actions / DotNET Tests succeeded Sep 4, 2024 in 0s

37 passed, 0 failed and 0 skipped

Tests passed successfully

✅ test/TestResults/test-results.trx

37 tests were completed in 1s with 37 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test.Application.UnitTests.Services.DomainService.ProfileServiceTests 11✅ 203ms
test.Application.UnitTests.Services.DomainService.TransactionServiceTests 10✅ 247ms
test.Application.UnitTests.Services.DomainService.UserServiceTests 11✅ 235ms
test.Web.UnitTests.Controllers.UsersControllerTests 5✅ 317ms

✅ test.Application.UnitTests.Services.DomainService.ProfileServiceTests

✅ ChangePassword_WhenChangePasswordFails_ReturnsFail
✅ ChangePassword_WhenCurrentPasswordIsIncorrect_ReturnsFail
✅ ChangePassword_WhenSuccess_ReturnsOk
✅ ChangePassword_WhenUserNotFound_ReturnsFail
✅ EditProfileInfo_WhenAllDataIsChangedCorrectly_ReturnsOk
✅ EditProfileInfo_WhenUpdateFails_ReturnsFail
✅ EditProfileInfo_WhenUsernameIsNoChanged_ReturnsOk
✅ EditProfileInfo_WhenUsernameIsReserved_ReturnsFail
✅ EditProfileInfo_WhenUserNotFound_ReturnsFail
✅ GetProfileInfo_WhenSuccess_ReturnsOk
✅ GetProfileInfo_WhenUserNotFound_ReturnsFail

✅ test.Application.UnitTests.Services.DomainService.TransactionServiceTests

✅ AddTransactionsFromCsvAsync_ShouldOnlyAddNewTransactions_WhenSomeTransactionsAlreadyExist
✅ AddTransactionsFromCsvAsync_ShouldReturnFail_WhenExceptionIsThrown
✅ AddTransactionsFromCsvAsync_ShouldReturnOk_WhenTransactionsAreAddedSuccessfully
✅ GetAllTransactionsAsync_ShouldReturnAllTransactions
✅ GetAllTransactionsAsync_ShouldReturnEmptyList_WhenNoTransactionsAreFound
✅ GetAllTransactionsAsync_ShouldReturnFailResult_WhenExceptionIsThrown
✅ GetTransactionsByAccountIdAsync_ShouldReturnEmptyList_WhenNoTransactionsAreFound
✅ GetTransactionsByAccountIdAsync_ShouldReturnFailResult_WhenExceptionIsThrown
✅ GetTransactionsByAccountIdAsync_ShouldReturnOkResult_WhenThereAreMultipleTransactionsBetweenTwoAccounts
✅ GetTransactionsByAccountIdAsync_ShouldReturnOkResult_WhenTransactionsAreRetrievedAndGroupedSuccessfully

✅ test.Application.UnitTests.Services.DomainService.UserServiceTests

✅ ChangeRole_WhenOperationSucceeds_ReturnsSuccessResult
✅ ChangeRole_WhenRoleDoesNotExist_ReturnsFailResult
✅ ChangeRole_WhenUserDoesNotExist_ReturnsFailResult
✅ GetUsersAsync_ReturnsUserListWithRoles
✅ Login_WhenLoginSucceeds_ReturnsSuccessResult
✅ Login_WhenPasswordIncorrect_ReturnsFailResult
✅ Login_WhenUsernameNotFound_ReturnsFailResult
✅ SignUpUser_WhenRoleAssignmentFails_ReturnsFailResult
✅ SignUpUser_WhenRoleDoesNotExist_ReturnsFailResult
✅ SignUpUser_WhenUserCreationFails_ReturnsFailResult
✅ SignUpUser_WhenUserIsCreatedAndRoleAssignedSuccessfully_ReturnsSuccessResult

✅ test.Web.UnitTests.Controllers.UsersControllerTests

✅ ChangeRole_WhenOperationSucceeds_ReturnsOk
✅ ChangeRole_WhenRoleDoesNotExist_ReturnsBadRequest
✅ Login_WhenLoginSucceeds_ReturnsOkResult
✅ Signup_WhenRoleDoesNotExist_ReturnsBadRequest
✅ Signup_WhenSignUpSucceeds_ReturnsOkResult