public void CL_WorkItemTracking_ClassificationNodes_MoveArea_Success() { // arrange string pathParent = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-Parent"; string pathChild = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-Child"; ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var createParentResult = nodes.CreateArea(_configuration.Project, pathParent); var createChildResult = nodes.CreateArea(_configuration.Project, pathChild); var moveResult = nodes.MoveArea(_configuration.Project, pathParent, createChildResult.Id); //assert Assert.IsNotNull(createParentResult); Assert.IsNotNull(createChildResult); Assert.IsNotNull(moveResult); }
public void CL_WorkItemTracking_ClassificationNodes_DeleteArea_Success() { // arrange string pathDelete = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-delete"; string pathMaster = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-master"; ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var createDelete = nodes.CreateArea(_configuration.Project, pathDelete); var createMaster = nodes.CreateArea(_configuration.Project, pathMaster); nodes.DeleteArea(_configuration.Project, pathDelete, createMaster.Id); //assert Assert.IsNotNull(createDelete); Assert.IsNotNull(createMaster); }
public void WorkItemTracking_ClassificationNodes_CreateArea_Success() { // arrange ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var result = nodes.CreateArea(_configuration.Project, "", "Foo"); Assert.AreEqual("success", result); }
public void WorkItemTracking_Nodes_DeleteArea_Success() { // arrange ClassificationNodes request = new ClassificationNodes(_configuration); string masterArea = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-MASTER"; string deleteArea = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-delete"; // act GetNodeResponse.Node responseMaster = request.CreateArea(_configuration.Project, masterArea); GetNodeResponse.Node responseDelete = request.CreateArea(_configuration.Project, deleteArea); var responseMove = request.DeleteArea(_configuration.Project, deleteArea, responseMaster.id.ToString()); //assert Assert.AreEqual(HttpStatusCode.Created, responseMaster.HttpStatusCode); Assert.AreEqual(HttpStatusCode.Created, responseDelete.HttpStatusCode); Assert.AreEqual(HttpStatusCode.NoContent, responseMove); request = null; }
public void WorkItemTracking_Nodes_MoveArea_Success() { // arrange ClassificationNodes request = new ClassificationNodes(_configuration); string parent = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-PARENT"; string child = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15) + "-child"; // act GetNodeResponse.Node responseParent = request.CreateArea(_configuration.Project, parent); GetNodeResponse.Node responseChild = request.CreateArea(_configuration.Project, child); GetNodeResponse.Node responseMove = request.MoveArea(_configuration.Project, parent, responseChild.id); //assert Assert.AreEqual(HttpStatusCode.Created, responseParent.HttpStatusCode); Assert.AreEqual(HttpStatusCode.Created, responseChild.HttpStatusCode); Assert.AreEqual(HttpStatusCode.OK, responseMove.HttpStatusCode); request = null; }
public void CL_WorkItemTracking_ClassificationNodes_CreateArea_Success() { // arrange string name = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15); ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var result = nodes.CreateArea(_configuration.Project, name); // assert Assert.IsNotNull(result); }
public void CL_WorkItemTracking_ClassificationNodes_RenameArea_Success() { // arrange string path = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15); ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var createResult = nodes.CreateArea(_configuration.Project, path); var renameResult = nodes.RenameArea(_configuration.Project, path, path + "-rename"); //assert Assert.IsNotNull(createResult); Assert.IsNotNull(renameResult); }
public void WorkItemTracking_Nodes_GetArea_Success() { // arrange string path = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15); ClassificationNodes request = new ClassificationNodes(_configuration); // act GetNodeResponse.Node createResponse = request.CreateArea(_configuration.Project, path); GetNodesResponse.Nodes getResponse = request.GetArea(_configuration.Project, path); //assert Assert.AreEqual(HttpStatusCode.Created, createResponse.HttpStatusCode); Assert.AreEqual(HttpStatusCode.OK, getResponse.HttpStatusCode); request = null; }
public void WorkItemTracking_Nodes_RenameArea_Success() { // arrange ClassificationNodes request = new ClassificationNodes(_configuration); string path = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 15); string newName = System.Guid.NewGuid().ToString().ToUpper().Substring(0, 10) + "-Rename"; // act GetNodeResponse.Node responseCreate = request.CreateArea(_configuration.Project, path); GetNodeResponse.Node responseUpdate = request.RenameArea(_configuration.Project, path, newName); //assert Assert.AreEqual(HttpStatusCode.Created, responseCreate.HttpStatusCode); Assert.AreEqual(HttpStatusCode.OK, responseUpdate.HttpStatusCode); request = null; }
public void WorkItemTracking_ClassificationNodes_CreateArea_Success() { // arrange ClassificationNodes nodes = new ClassificationNodes(_configuration); // act var result = nodes.CreateArea(_configuration.Project, "", "Foo"); // assert if (result.Contains("VS402371:")) { Assert.Inconclusive("area path already exists"); } else { Assert.AreEqual("success", result); } }
public void WorkItemTracking_Nodes_CreateArea_Success() { // arrange ClassificationNodes request = new ClassificationNodes(_configuration); string path = "Area Foo"; // act GetNodeResponse.Node response = request.CreateArea(_configuration.Project, path); //assert if (response.Message.Contains("VS402371:")) { Assert.Inconclusive("Area path '" + path + "' already exists"); } else { Assert.AreEqual(HttpStatusCode.Created, response.HttpStatusCode); } request = null; }