public void EntityWithInvalidAmountAttributes() { var entity = new EntityDomain("EntityTest"); entity.AddAttribute(GetIdentifierAttribute()); var notifications = new NotificationManager(); var valid = entity.IsValid(notifications); Assert.False(valid); Assert.Contains(nameof(EntityDomain.Attributes), notifications.ToPropertiesNameList()); }
public void InvalidEntityName() { var entity = new EntityDomain(null); AddAttributes(entity); var notifications = new NotificationManager(); var valid = entity.IsValid(notifications); Assert.False(valid); Assert.Contains(nameof(EntityDomain.Name), notifications.ToPropertiesNameList()); }