Amido.Testing.WebApi.Request.TestTasks.Add C# (CSharp) Method

Add() public method

Adds a new task to the collection.
public Add ( System.Action task ) : TestTasks
task System.Action The action to run.
return TestTasks
        public TestTasks Add(Action task)
        {
            Contract.Requires(task != null, "The task cannot be null.");

            Tasks.Add(Task.Factory.StartNew(task));
            return this;
        }