lelionvert / socrates-promo07

0 stars 0 forks source link

Registration: calculate the price #2

Open cotonne opened 5 years ago

cotonne commented 5 years ago

As an organiser of SocratesFR I want to get the price of the participation for one candidate In order to use this information to refund participant and for financial sheet

Given the following prices by choices

Choice Price
Single 610
Double 510
Triple 410
No Accommodation 240

And the price by meal is 40€

Scenario: Complete Price

Given A participant with a checkin on thursday and checkout on sunday after 14hPM When I calculate the price Then I get the total amount of her/his choice

Scenario: Price without one meal

Given A participant with (2 examples)

When I calculate the price Then I get the total amount of her/his choice minus 40

Scenario: Price without two meals

Given A participant with a checkin on Friday AND checkout on saturday 18PM When I calculate the price Then I get the total amount of her/his choice minus 2 * 40