Skip to content

Instantly share code, notes, and snippets.

@pbedat
Created March 9, 2014 20:32
Show Gist options
  • Select an option

  • Save pbedat/9454148 to your computer and use it in GitHub Desktop.

Select an option

Save pbedat/9454148 to your computer and use it in GitHub Desktop.
GetTestcasesByProject
angular.module("xAmine").factory("GetTestcasesByProject", function(Backend){
var filterBy = function(projectId){
return function(testcases){
return _(testcases).where({ProjectId: projectId});
};
};
return function(projectId){
return Backend.Get("Testcases").then(filterBy(projectId));
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment