public void Deactivation_Creates_Form_Entity() { var entityId = Guid.NewGuid(); var entity = new Entity(); Service.Setup(s => s.Update(It.IsAny <Entity>())) .Callback <Entity>(e => entity = e); Forms.DeactivateEntityForm(entityId); Assert.AreEqual("systemform", entity.LogicalName); Assert.AreEqual(entityId, entity.Id); }
public void Deactivate_Throws_If_Empty_FormId() { Forms.DeactivateEntityForm(Guid.Empty); }