Exemplo n.º 1
0
        public static string EntityHasIncompatibleView <T>(IEntityWithBoardPresence entity)
        {
            IsoObject view = entity.view;

            if (!(null == view))
            {
                return($"{entity.GetType().Name} entity with id {entity.id} has a view of type {((object)entity.view).GetType().Name} that does not implement {typeof(T).Name}.");
            }
            return(EntityHasNoView(entity));
        }
Exemplo n.º 2
0
 public static string EntityHasNoView(IEntityWithBoardPresence entity)
 {
     return($"{entity.GetType().Name} entity with id {entity.id} doesn't have a valid view.");
 }