예제 #1
0
        public void RedmineUser_ShouldReturnCurrentUser()
        {
            // User currentUser = redmineManager.GetCurrentUser();
            User currentUser = redmineManager.GetCurrentUserAsync().Result;

            Assert.AreEqual(currentUser.ApiKey, ConfigurationManager.AppSettings["apiKey"]);
        }
예제 #2
0
        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();
        }
예제 #4
0
        public async Task Should_Get_CurrentUser()
        {
            var currentUser = await redmineManager.GetCurrentUserAsync();

            Assert.IsNotNull(currentUser, "Get current user returned null!");
        }