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

Add() public method

public Add ( int amount ) : int
amount int
return int
		public int Add(int amount)
		{
			AssertIsPrevalenceEngineCall();

			if (amount < 0)
			{
				throw new ArgumentOutOfRangeException("amount", amount, "amount must be positive!");
			}
			_total += amount;
			return _total;
		}