Example #1
0
        protected override void InitializeResourcesFor(IWithName namedObject)
        {
            string entityType = _entityType ?? _objectTypeResolver.TypeFor(namedObject);

            _view.Caption         = Captions.Rename;
            _view.NameDescription = Captions.RenameEntityCaption(entityType, namedObject.Name);
        }
Example #2
0
        protected override void InitializeResourcesFor(IObjectBase entity)
        {
            string entityType = _objectTypeResolver.TypeFor(entity);

            _view.Caption         = Captions.EditDescription;
            _view.NameDescription = Captions.RenameEntityCaption(entityType, entity.Name);
            _view.Icon            = ApplicationIcons.Description;
        }
 public void should_set_the_description_for_the_view_according_to_the_entity_type_and_name()
 {
     _view.NameDescription.ShouldBeEqualTo(Captions.RenameEntityCaption(_entityType, _entityName));
 }
 protected override void InitializeResourcesFor(IClassification classification)
 {
     _view.Caption = Captions.Rename;
      _view.NameDescription = Captions.RenameEntityCaption(Captions.Folder, classification.Name);
 }