Bamboo.Prevalence.Tests.Model.PrincipalSensitiveAddingSystem.Add C# (CSharp) Method

Add() private method

private Add ( int amount ) : int
amount int
return int
		public int Add(int amount)
		{
			if (amount < 0)
			{
				throw new ArgumentOutOfRangeException("amount", amount, "amount must be positive!");
			}

			_total += amount;
			return _total;
		}
PrincipalSensitiveAddingSystem