public void TestPostProjectAssignment() { TasksApi target = new TasksApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "sample-project-2.mpp"; int? taskUid = 1; int? resourceUid = 1; double? units = null; string fileName = null; string storage = null; string folder = null; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\tasks\\resources\\" + name)); AssignmentItemResponse actual; actual = target.PostProjectAssignment(name, taskUid, resourceUid, units, fileName, storage, folder); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new AssignmentItemResponse(), actual.GetType()); }