Exemple #1
0
        public void AddGpsFeature_Tests()
        {
            var purchasedFeatures =
                motorHomeRentalAvailableFeatures
                .AddFeature <GpsFeature>()
                .GetPurchasedFeatures();

            Assert.AreEqual(1, purchasedFeatures.Count);
            Assert.AreEqual(35, motorHomeRentalAvailableFeatures.EstimatePurchasedFeaturesFee());

            var feature = purchasedFeatures.First();

            Assert.IsInstanceOf <GpsFeature>(feature);
        }
Exemple #2
0
 public IRental EstimatePurchasedFeaturesFee()
 {
     CalculatedPurchasedFeaturesFee = AvailableFeatures.EstimatePurchasedFeaturesFee();
     return(this);
 }