Inheritance: IRazorDocumentSource
Beispiel #1
0
        public MainViewModel(RazorDocumentManager documentManager, ModelProviders modelProviders, ModelBuilders modelBuilders)
        {
            _documentManager = documentManager;
            _modelBuilders = modelBuilders;
            _modelProviders = modelProviders;

            Templates = new ObservableCollection<RazorTemplateViewModel>();

            RegisterCommands();
        }
 public void TestInitialize()
 {
     _manager = new RazorDocumentManager(new[] { new XmlRazorDocumentSource(new ModelProvidersStub()) });
 }
Beispiel #3
0
 public void TestInitialize()
 {
     _loader = new RazorDocumentManager(new XmlRazorDocumentSource(new RazorPad.Core.Tests.Stubs.ModelProvidersStub()));
     _templateCompiler = new TemplateCompiler();
 }