public void Deactivation_Continues_On_Error() { Service.SetupSequence(s => s.Update(It.IsAny <Entity>())) .Throws(new Exception()) .Pass(); Forms.DeactivateEntityForms(FormIds); Service.Verify(s => s.Update(It.IsAny <Entity>()), Times.Exactly(2)); }
public void Calls_Update_Twice() { Forms.DeactivateEntityForms(FormIds); Service.Verify(s => s.Update(It.IsAny <Entity>()), Times.Exactly(2)); }
public void Deactivation_Doesnt_Throw_If_Empty_FormIds() { Forms.DeactivateEntityForms(string.Empty); }