本文整理汇总了C#中Expedia.Car.getBasePrice方法的典型用法代码示例。如果您正苦于以下问题:C# Car.getBasePrice方法的具体用法?C# Car.getBasePrice怎么用?C# Car.getBasePrice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Expedia.Car
的用法示例。
在下文中一共展示了Car.getBasePrice方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestThatCarHasCorrectBasePriceForTenDays
public void TestThatCarHasCorrectBasePriceForTenDays()
{
var target = new Car(10);
Assert.AreEqual(80, target.getBasePrice());
}
示例2: TestThatUserTotalCostIsCorrectWhenMoreThanFlights
public void TestThatUserTotalCostIsCorrectWhenMoreThanFlights()
{
var car = new Car(5);
var flight = new Flight(StartDate, EndDate, 500);
target.book(flight);
target.book(car);
Assert.AreEqual(flight.getBasePrice() + car.getBasePrice(), target.Price);
}
示例3: TestThatCarHasCorrectBasePriceForSevenDays
public void TestThatCarHasCorrectBasePriceForSevenDays()
{
var target = new Car(7);
Assert.AreEqual(10*7*.8, target.getBasePrice());
}
示例4: TestThatCarHasCorrectBasePriceForFiveDays
public void TestThatCarHasCorrectBasePriceForFiveDays()
{
var target = new Car(5);
Assert.AreEqual(50, target.getBasePrice());
}