Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Adding a Customer and Cart for Unit Testing

  1. #1
    joe.jones is offline Junior Member
    Join Date
    Aug 2008
    Posts
    5

    Default Adding a Customer and Cart for Unit Testing

    Hi,
    I was wondering what would be the best way to set up (and remove) a test customer object (with database entries) and cart for testing purposes? This would need to be done from code since it will be an NUnit test.
    Thanks
    Joe

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    The best way to add bulk customers in the DB would be adding them via WSI, refer to this manual http://manual.aspdotnetstorefront.com/wsi/

    Then, see this thread to programatically add items to the cart.

    Hope that helps.

  3. #3
    joe.jones is offline Junior Member
    Join Date
    Aug 2008
    Posts
    5

    Default

    Can I call the WSI from test code and load a customer that way? What I am trying to do is set up a test so that I can load a customer into the database and as a customer object and do tests.