Example #1
0
        public DocumentViewModel(
            IDialogService dialogService,
            IWindowManager windowManager,
            ISiteContextGenerator siteContextGenerator,
            Func<string, IMetaWeblogService> getMetaWeblog,
            ISettingsProvider settingsProvider,
            IDocumentParser documentParser)
        {
            this.dialogService = dialogService;
            this.windowManager = windowManager;
            this.siteContextGenerator = siteContextGenerator;
            this.getMetaWeblog = getMetaWeblog;
            this.settingsProvider = settingsProvider;
            this.documentParser = documentParser;

            FontSize = GetFontSize();

            title = "New Document";
            Original = "";
            Document = new TextDocument();
            Post = new Post();
            timer = new DispatcherTimer();
            timer.Tick += TimerTick;
            timer.Interval = delay;
        }
 public ConsentFormController(IMembershipService membershipService,
                              IBlobStore blobStore, IViewRepository<ConsentFormEditModel> viewRepository, 
                              IDocumentParser documentParser)
     : base(membershipService, blobStore)
 {
     _viewRepository = viewRepository;
     _documentParser = documentParser;
 }
Example #3
0
        public HtmlExporter(IFileWriterFactory writerFactory, IDocumentParser parser)
        {
            Ensure.ArgumentNotNull(writerFactory, "writerFactory");
            Ensure.ArgumentNotNull(parser, "parser");

            _writerFactory = writerFactory;
            _parser = parser;
        }
        public ExportToHtmlPlugin(
            IDocumentParser documentParser,
            IPluginSettingsProvider settingsProvider)
        {
            _documentParser = documentParser;
            _settingsProvider = settingsProvider;

            _settings = _settingsProvider.GetSettings<ExportToHtmlPluginSettings>();
        }
        public void SetUp()
        {
            StructureMapBootstrapper.Execute();

            ObjectFactory.Configure(x =>
            {
                x.For<IMessagePublisher>().Use<FakeMessagePublisher>();
            });
            _sut =
                ServiceLocator.Current.GetAllInstances<IDocumentParser>().Find(
                    p => p.CanProcess(BusinessPartner.MicroCenter, "850"));
        }
 public void SetUp()
 {
     _addrParser = new Mock<IAddressParser>();
     _lineParser = new Mock<IFedex850LineParser>();
     _recorder = new Mock<IEDIResponseReferenceRecorder>();
     _genericParser = new Mock<IGeneric850Parser>();
     _sut = new Fedex850Parser(_addrParser.Object,  _recorder.Object, _genericParser.Object, _lineParser.Object);
 }