Ejemplo n.º 1
0
        private UserStories getUserStoriesByUriOptions(URIOptions uriOptions)
        {
            uriOptions.EntityType = "userstories";
            Uri uri = uriOptions.BuildUri();

            return(ObjectsConverter.GetObjects <UserStories>(this.TPWebServiceClient.GetResponse(uri)));
        }
Ejemplo n.º 2
0
        private Bugs getBugsByUriOptions(URIOptions uriOptions)
        {
            uriOptions.EntityType = "bugs";
            Uri uri = uriOptions.BuildUri();

            return(ObjectsConverter.GetObjects <Bugs>(this.TPWebServiceClient.GetResponse(uri)));
        }
Ejemplo n.º 3
0
        public Bugs GetBugs(int userID)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.WhereStatement = "(Owner.Id eq " + userID.ToString() + ")";

            return(getBugsByUriOptions(uriOptions));
        }
Ejemplo n.º 4
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID, string statusName, DateTime startDate, DateTime endDate)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ") and (Date gte '" + startDate.ToString("yyyy-MM-dd") + "') and (Date lte '" + endDate.ToString("yyyy-MM-dd") + "') and (EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Ejemplo n.º 5
0
        public UserStoryHistiories GetUserStoryHistories(DateTime startDate, DateTime endDate)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(Date gte '" + startDate.ToString("yyyy-MM-dd") + "') and (Date lte '" + endDate.ToString("yyyy-MM-dd") + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Ejemplo n.º 6
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID, string statusName)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ") and (EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Ejemplo n.º 7
0
        public UserStoryHistiories GetUserStoryHistories(string statusName)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Ejemplo n.º 8
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ")";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Ejemplo n.º 9
0
        public Users GetUsers(bool includeInActive = false)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType = "users";
            if (!includeInActive)
            {
                uriOptions.WhereStatement = "(IsActive eq 'true')";
            }
            return(getUsersByUriOption(uriOptions.BuildUri()));
        }