Open magwas opened 5 years ago
So I have to add List getAssurances() function to CastVote which gives back the assurances of the voter? :O
No, you don't have to give it back. You have to store it with the vote cast. But only if canUpdate is true.
Thx. It waits for the merge of #60
I am not clearly understand what to do whit this ticket. I have to store the assurances in the CastVote class. So I will add it in the Vote.addCastVote function. But how do I get the users assurances (which I would like to store?
From the User instance, which can be found with the proxy id from ws context. And as this is not yet implemented, you have to use mocks.
grab
Behaviour: Supporting functionality/CastVote;The assurances of the voter can be obtained from a cast vote if canupdateis true
@tested_feature("Supporting functionality")
@tested_operation("CastVote")
@tested_behaviour("The assurances of the voter can be obtained from a cast vote if canupdateis true")
by List getAssurances() The CastVote actually stores the proxy ID for the voter, and consults the voter's User entity
Deviation in model