Test Function in MVC Project RRS feed

  • Question

  • So I want to test one of my Functions in my Web Project, but it's not actually connected to anything in the project yet (someone else is working on that part). The Function takes in an "ID" field, goes off and does some queries and gets some data, performs some calculations on it, and then writes a bunch of lines to a FileStream and returns that stream. I pretty much just want to test it by having it write the file to my own computer locally, and working with that file directory after the Function completes.

    So my question is mainly:

    1) How do I call this Function just for testing purposes so I can test all the queries/calculations/File writes, etc without it being connected to another part of the application just yet.

    2) How can I change the 'Return fs' for the FileStream to write to my own computer locally to view the file that has been written.

    Thanks guys!

    • Moved by edhickeyModerator Thursday, July 29, 2010 3:13 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Tuesday, July 27, 2010 1:20 PM

All replies