6.1.4: e.g. 6.9 Adding a Property to an Implementation Class
parent
02b80da83f
commit
cbd679abba
|
@ -32,9 +32,10 @@ namespace NinjectDemo
|
|||
|
||||
public class DefaultDiscountHelper : IDiscountHelper
|
||||
{
|
||||
public decimal DiscountSize { get; set; }
|
||||
public decimal ApplyDiscount(decimal totalParam)
|
||||
{
|
||||
return (totalParam - (10m / 100m * totalParam));
|
||||
return (totalParam - (DiscountSize * totalParam));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue