@Test public void getNetPrice() { int expected = 600; this.cut = new Registration(false, 2, 1); int actualNetPrice = this.cut.getNetPrice(); assertThat(expected, is(actualNetPrice)); }
public int getNetPrice() { return numberOfAttendees * numberOfDays * DAILY_PRICE; }
Registration { public int getNetPrice() { return numberOfAttendees * numberOfDays * DAILY_PRICE; } }
Registration { public int getNetPrice() { return numberOfAttendees * numberOfDays * DAILY_PRICE; } Registration(boolean vatIdAvailable, int numberOfDays, int numberOfAttendees);  Registration(long id);  Registration(); }
Registration { public int getNetPrice() { return numberOfAttendees * numberOfDays * DAILY_PRICE; } Registration(boolean vatIdAvailable, int numberOfDays, int numberOfAttendees);  Registration(long id);  Registration(); int getNetPrice(); void setCalculator(BiFunction<Boolean, Integer, Integer> taxCalculator); int getTotalPrice(); boolean isVatIdAvailable(); long getId(); }
Registration { public int getNetPrice() { return numberOfAttendees * numberOfDays * DAILY_PRICE; } Registration(boolean vatIdAvailable, int numberOfDays, int numberOfAttendees);  Registration(long id);  Registration(); int getNetPrice(); void setCalculator(BiFunction<Boolean, Integer, Integer> taxCalculator); int getTotalPrice(); boolean isVatIdAvailable(); long getId(); static final String findAll; }