Skip to content

Daryl Haase Unit Test Training#10

Open
DarylHaase wants to merge 1 commit intoroddewit:masterfrom
DarylHaase:master
Open

Daryl Haase Unit Test Training#10
DarylHaase wants to merge 1 commit intoroddewit:masterfrom
DarylHaase:master

Conversation

@DarylHaase
Copy link

Please refer to AuthenticatorTests::Test_Authenticate_TwoUsersWithSameNameAndPassword

It should not be possible to add two users with the same name and password. Because the lambda expression returns FirstOfDefault the balance of the first user will always be returned. In this test I created two users with identical names and passwords. The first has a balance of $1000 the second a balance of $1. If the second user were to try and log in, they would see a balance of $1000. Construct should not permit this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments