Validate() public method

public Validate ( ) : void
return void
Exemplo n.º 1
0
        public void AddTask(Task task)
        {
            task.Validate();

            task.ID = _nextTaskID++;

            // we must use PrevalenceEngine.Now as our clock
            // if we want our system to be deterministic
            //
            task.DateCreated = PrevalenceEngine.Now;

            _tasks.Add(task.ID, task);
        }
Exemplo n.º 2
0
		public void AddTask(Task task)
		{
			task.Validate();

			task.ID = _nextTaskID++;

			// we must use PrevalenceEngine.Now as our clock
			// if we want our system to be deterministic
			//
			task.DateCreated = PrevalenceEngine.Now;

			_tasks.Add(task.ID, task);
		}