public void Delete_called_without_UserState_results_in_UserState_defaulted_to_Null_server() { var context = GetContext(); Single.DeleteObject(5, (o1, e1) => { context.Assert.IsNull(e1.Error); context.Assert.IsNull(e1.UserState); context.Assert.Success(); }); context.Complete(); }
public void Delete_called_with_UserState_results_in_UserState_set_on_server() { var context = GetContext(); object userState = "state"; Single.DeleteObject(5, (o1, e1) => { context.Assert.IsNull(e1.Error); context.Assert.AreEqual(userState, e1.UserState); context.Assert.Success(); }, userState); context.Complete(); }
public void TestDpDelete() { Single.DeleteObject(5); Assert.AreEqual("Deleted", ApplicationContext.GlobalContext["Single"]); }