public void Must_Return_Calculated_Value_When_Standard_Data_Is_Supplied() { var fixedCharge = new VariableCharge("99999999", ServiceType.Voice, 100, 10, "Variable Charge Test", "DK"); fixedCharge.CalculateCharge(new VoiceCall("99999999", DateTime.Now, new TimeSpan(0, 0, 4, 0), "00000000", "DK", "DK")) .Should().Be(100*((4*60)/10)); }
public void Must_Return_Handle_Zero_Duration() { var fixedCharge = new VariableCharge("99999999", ServiceType.Voice, 100, 10, "Variable Charge Test", "DK"); fixedCharge.CalculateCharge(new VoiceCall("99999999", DateTime.Now, new TimeSpan(0, 0, 0, 0), "00000000", "DK", "DK")) .Should().Be(100 * ((0 * 60) / 10)); }
public void Must_Be_Handle_Handle_Charge_Pr_Unit() { var fixedCharge = new VariableCharge("99999999", ServiceType.Voice, 0, 10, "Variable Charge Test", "DK"); fixedCharge.CalculateCharge(new VoiceCall("99999999", DateTime.Now, new TimeSpan(0, 0, 4, 0), "00000000", "DK", "DK")) .Should().Be(0 * ((4 * 60) / 10)); }