I have to test whether the breeze saveChanges
method is working.For that I am trying to pass a json array in the post method of breeze but when I check the post method in controller it says the saveBundle
is null.
How can I test the saveChanges
manually by passing any entities or json object without actually binding to the view?
var SaveBundle = [{}];
var option = new breeze.SaveOptions({ resourceName: 'SaveChanges'})
var manager = new breeze.EntityManager;
var postData = function () {
return manager.saveChanges(SaveBundle, option)
.then(saveSucceeded)
.fail(saveFailed);
};