Example #1
0
        private void ConfirmDelete(int linkID, string linkTitle)
        {
            var command = new DeleteLinkCommand(Repository, linkID, linkTitle)
            {
                ExecuteSuccessMessage = String.Format(CultureInfo.CurrentCulture, "Link '{0}' deleted", linkTitle)
            };

            Messages.ShowMessage(command.Execute());
            BindList();
        }
        public void Init()
        {
            _linkRepository         = MockRepository.GenerateMock <ILinkRepository>();
            _domainRepository       = MockRepository.GenerateMock <IDomainRepository>();
            _mediaServiceRepository = MockRepository.GenerateMock <IMediaServiceRepository>();

            _storageService = MockRepository.GenerateMock <IStorage>();

            _deleteLinkCommand = new DeleteLinkCommand(_storageService, _domainRepository, _mediaServiceRepository, _linkRepository);
        }