Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I was wondering if anybody has setup some TestProject in visual studio with uCommerce?
I have followed the advice on the following page to setup the test project: http://www.publicvoid.dk/EnableTheUCommerceEcommerceAPIOutsideTheWebContext.aspx
On the code I have something simple
[TestMethod] public void GetAccessCode() { ProductCatalog catalogInternal = ProductCatalog.Get(23);}
but this is throwing me an error: in Castle.Windsor.Configuration.Interpreters.XmlProcessor.ConfigurationProcessingException:
{"Error processing node resource FileResource: [] []"}
Thank you for your help
While it's possible to have database access in your tetsts you typicallyshouldn't need it.
To make your tests perform better the best approach is to new the object you need a populate it with your test values, e.g.
var catalog = new { Name = "MyTestCatalog" };Assert.That(catalog.Name, Is.EqualTo("MyTestCatalog"));
Having said that the API should work in your tests. Could you let me know following:
1) Which version you're on
2) Whether you copified in components.config and related config files?
My guess is that uCommerce can't find components.config.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uCommerce in Visual studio TestProject
Hi
I was wondering if anybody has setup some TestProject in visual studio with uCommerce?
I have followed the advice on the following page to setup the test project: http://www.publicvoid.dk/EnableTheUCommerceEcommerceAPIOutsideTheWebContext.aspx
On the code I have something simple
[TestMethod]
public void GetAccessCode()
{
ProductCatalog catalogInternal = ProductCatalog.Get(23);
}
but this is throwing me an error: in Castle.Windsor.Configuration.Interpreters.XmlProcessor.ConfigurationProcessingException:
{"Error processing node resource FileResource: [] []"}
Thank you for your help
While it's possible to have database access in your tetsts you typicallyshouldn't need it.
To make your tests perform better the best approach is to new the object you need a populate it with your test values, e.g.
Having said that the API should work in your tests. Could you let me know following:
1) Which version you're on
2) Whether you copified in components.config and related config files?
My guess is that uCommerce can't find components.config.
is working on a reply...