@Test public void should_calculate_tax_for_small_typical_shop_created_by_default() { // given Shop shop = Shop.createStore("rybnik", 100, 50.0); assertEquals(shop.calculateTaxToPay(), 270.0, 1.0); }
@Test public void should_calculate_tax_for_huge_typical_shop() { // given Shop shop = Shop.createStore("rybnik", 100, 50.0, AdditionalStoreType.HUGE, AdditionalTaxType.TYPICAL); assertEquals(shop.calculateTaxToPay(), 1250.0, 1.0); }
@Test public void should_calculate_tax_for_huge_shopping_mall() { // given Shop shop = Shop.createStore( "rybnik", 100, 50.0, AdditionalStoreType.HUGE, AdditionalTaxType.SHOPPING_MALL); assertEquals(shop.calculateTaxToPay(), 2400.0, 1.0); }
@Test public void should_calculate_tax_for_middle_sized_shopping_mall() { // given Shop shop = Shop.createStore( "rybnik", 100, 50.0, AdditionalStoreType.MIDDLE_SIZED, AdditionalTaxType.SHOPPING_MALL); assertEquals(shop.calculateTaxToPay(), 800.0, 1.0); }
@Test public void should_calculate_tax_for_middle_sized_typical_shop() { // given Shop shop = Shop.createStore( "rybnik", 100, 50.0, AdditionalStoreType.MIDDLE_SIZED, AdditionalTaxType.TYPICAL); assertEquals(shop.calculateTaxToPay(), 450.0, 1.0); }