New view for new MStest scenaroio

This commit is contained in:
2019-11-19 23:23:47 +01:00
parent 03d8cf681e
commit d0847b19d2
5 changed files with 64 additions and 12 deletions

View File

@ -6,10 +6,6 @@ namespace BrokerageLib {
public decimal DetermineVariableRate(int unitsSold, decimal unitPrice) {
// Sales representative gets top commission rate
// if they sell over the sales threshold amount
// or if they sell more than the max unit threshold
if (unitsSold < 0)
{
throw new ArgumentOutOfRangeException("UnitsSold cannot be less than zero.");
@ -27,7 +23,6 @@ namespace BrokerageLib {
}
else
{
return grossSale * Constants.CommissionRate.Standard;
}
}