Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Deactivate_Throws_If_Empty_FormId()
 {
     Forms.DeactivateEntityForm(Guid.Empty);
 }