예제 #1
0
        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));
        }
예제 #2
0
        public void Calls_Update_Twice()
        {
            Forms.DeactivateEntityForms(FormIds);

            Service.Verify(s => s.Update(It.IsAny <Entity>()), Times.Exactly(2));
        }
예제 #3
0
 public void Deactivation_Doesnt_Throw_If_Empty_FormIds()
 {
     Forms.DeactivateEntityForms(string.Empty);
 }