Example #1
0
        public void Database_AddAmount_DeliveredAmountIncreased()
        {
            ContractLine actual = dbc.GetContractLines(4).Last();

            Assert.AreEqual(0, actual.DeliveredAmount);
            dbc.AddAmount(actual.Id, 500);
            actual = dbc.GetContractLines(4).Last();
            Assert.AreEqual(500, actual.DeliveredAmount);

            dbc.AddAmount(actual.Id, -500);
        }
Example #2
0
 public void AddAmount(int contractLineId, int amount)
 {
     dbController.AddAmount(contractLineId, amount);
 }