public void Upload_IntegrationTest_Success_NullParameterLog() { // Arrange InformationParser informationParser = new InformationParser(); Logger logger = new Logger("Upload_IntegrationTest_SuccessUploadToTestProject1.log"); ServerOperationManager operationManager = informationParser.Init_ServerOperation(logger); // Act bool result = informationParser.Upload_Process(true, operationManager, null); // Assert Assert.IsTrue(result); }
// Settings section end ------------------------------------------------- // Upload section start ------------------------------------------------- /// <summary> /// Click event, Start the upload the WorkItems structure to the configured server. /// </summary> private void subUploadStart_Click(object sender, EventArgs e) { // Relod Config Period for changes. ConfigurationManager.RefreshSection("PBICollectionSection"); ConfigurationManager.RefreshSection("Connection"); ConfigurationManager.RefreshSection("MailInformation"); ConfigurationManager.RefreshSection("system.diagnostics"); // Controller evet calling. bool result = false; if (UploadActiveButton.Text.Equals("Active")) { result = informationParser.Upload_Process(true, serverOperator, log); FileOperations writer = new FileOperations(log); writer.WriteInCSV(informationParser.CurrentTeamProjectName, serverOperator.datasForFileModification); } else { Alert.AlertCreation("Server Connection Problem!", AlertType.error); return; } if (result) { for (int i = 0; i <= 100; ++i) { UploadBar.Value = i; UploadBar.Update(); } Alert.AlertCreation("Upload Success!", AlertType.success); } else { Alert.AlertCreation("Upload Failed! Check the LOG!", AlertType.error); } Thread.Sleep(1000); UploadBar.Value = 0; }