예제 #1
0
        public void CalculateTotalPrice_DeliveryCountrAnyOther_TotalDeliveryPrice1650()
        {
            sut = new Parcel(0, "", 10, "Any Other");
            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(16.50, result);
        }
예제 #2
0
        public void CalculateTotalPrice_DeliveryCountryLithuaniaAndDeliveryTypePostMachine_TotalDeliveryPrice1250()
        {
            sut = new Parcel(0, "Post Machine", 10, "Lithuania");
            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(12.50, result);
        }
예제 #3
0
        public void CalculateTotalPrice_DeliveryCountryLithuaniaAndDeliveryTypeCourierServices_TotalDeliveryPrice1350()
        {
            sut = new Parcel(0, "Courier Services", 10, "Lithuania");
            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(13.50, result);
        }
예제 #4
0
        public void CalculateDeliveryCost_DeliveryCountrAnyOther_TotalPriceShouldBe650()
        {
            sut = new Parcel(0, "", 0, "Any Other");

            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(6.5, result);
        }
예제 #5
0
        public void CalculateDeliveryCost_DeliveryCountryLithuaniaAndDeliveryTypePostMachine_TotalPriceShouldBe250()
        {
            sut = new Parcel(0, "Post Machine", 0, "Lithuania");

            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(2.5, result);
        }
예제 #6
0
        public void CalculateDeliveryCost_DeliveryCountryLithuaniaAndDeliveryTypeCourierServices_TotalPriceShouldBe350()
        {
            sut = new Parcel(0, "Courier Services", 0, "Lithuania");

            var result = sut.CalculateTotalPrice();

            Assert.AreEqual(3.5, result);
        }