Beispiel #1
0
        public void RemoveAllFeatures_Tests()
        {
            var purchasedFeatures =
                carRentalAvailableFeatures
                .RemoveFeature <CarSeatFeature>()
                .RemoveFeature <GpsFeature>()
                .GetPurchasedFeatures();

            Assert.AreEqual(0, purchasedFeatures.Count);
            Assert.AreEqual(0, carRentalAvailableFeatures.EstimatePurchasedFeaturesFee());
        }
Beispiel #2
0
 public IRental RemoveFeature <T>() where T : IRentalFeature
 {
     AvailableFeatures.RemoveFeature <T>();
     return(this);
 }