public void TestPutTaskLink() { TasksApi target = new TasksApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "sample-project-2.mpp"; int? index = 1; string storage = null; string folder = null; string fileName = null; TaskLink body = new TaskLink(); body.SuccessorUid = 1; body.PredecessorUid = 0; body.Index = 1; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\tasks\\resources\\" + name)); TaskLinkResponse actual; actual = target.PutTaskLink(name, index, storage, folder, fileName, body); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new TaskLinkResponse(), actual.GetType()); }