public void RedmineUser_ShouldReturnCurrentUser() { // User currentUser = redmineManager.GetCurrentUser(); User currentUser = redmineManager.GetCurrentUserAsync().Result; Assert.AreEqual(currentUser.ApiKey, ConfigurationManager.AppSettings["apiKey"]); }
public void ShouldReturnCurrentUser() { User currentUser = redmineManager.GetCurrentUserAsync()(); Assert.AreEqual(currentUser.ApiKey, Helper.ApiKey); }
private void LoadLoggerData() { _manager = new RedmineManager(Settings.HostUrl, Settings.UserApiKey); //, MimeFormat.xml, true, CultureInfo.GetCultureInfo("es-MX")); _manager.DownloadCompleted += ManagerDownloadCompleted; BusyOperations++; _manager.GetCurrentUserAsync(); }
public async Task Should_Get_CurrentUser() { var currentUser = await redmineManager.GetCurrentUserAsync(); Assert.IsNotNull(currentUser, "Get current user returned null!"); }