public void TestPutProjectTask() { TasksApi target = new TasksApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "sample-project-2.mpp"; int? taskUid = 0; string mode = null; bool? recalculate = null; string storage = null; string folder = null; string fileName = null; Task body = new Task(); body.Uid = 0; body.Id = 1; body.Name = "Tasks"; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\tasks\\resources\\" + name)); TaskResponse actual; actual = target.PutProjectTask(name, taskUid, mode, recalculate, storage, folder, fileName, body); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new TaskResponse(), actual.GetType()); }