public async Task TestCreateNewProjectByTokenCredentials() { var remoteName = await UploadFileToStorageAsync("NewProductDev.mpp"); var response = await TasksApi.CreateNewProjectAsync(new CreateNewProjectRequest() { Name = remoteName, XProjectOnlineToken = "SOMESECRETTOKEN", SiteUrl = "http://project_server_instance.local/sites/pwa" }); Assert.AreEqual((int)HttpStatusCode.OK, response.Code); }
public async Task TestCreateNewProjectByLoginAndPasswordCredentials() { var remoteName = await UploadFileToStorageAsync("NewProductDev.mpp"); var response = await TasksApi.CreateNewProjectAsync(new CreateNewProjectRequest() { Name = remoteName, UserName = "******", XSharepointPassword = "******", SiteUrl = "http://project_server_instance.local/sites/pwa" }); Assert.AreEqual((int)HttpStatusCode.OK, response.Code); }