Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Uranday 32 posts 53 karma points
    Mar 09, 2012 @ 12:47
    Uranday
    0

    Retrieve node from umbraco

    Hi

    I'm new to umbraco, so if this is a noobish question, please excuse me. In an existing application I need to do some major changes. At this moment in a page an external model is combined with the umbraco model in a third agregated model. The view is build from this model. 

    I have to make some major changes to the external model and therefor I want to unittest some things. I'm now working with a test project, included all umbraco (4.7) dlls and copied the appSettings over from the webproject.

    With this line I try to retrieve the model/node from umbraco but I get a nullreference exception. 

    Dynamic node = new DynamicNode(1720);

    Is this possible and how should I do it?

    Patrick

  • Nawaz 21 posts 74 karma points
    Sep 24, 2012 @ 19:18
    Nawaz
    0

    Add this reference

    @using umbraco.MacroEngines


Please Sign in or register to post replies

Write your reply to:

Draft