rexcardan/ESAPIX

Questions regarding 16.1 and dropping Facades and JSON Serialization

Opened this issue · 3 comments

It seems with the implementation of ESAPIX for Aria 16.1 (09254e8) a major change was made and Facades were removed . One of the major benefits of them was being able to unit test without access to the ESAPI scripting environment as demonstrated here and is written here.

We are using Aria 16. Is this is still possible in order to facilitate testing (and development)?

With the same commit it seems the serialization was also reduced drastically as the JSON serialization was also removed. I was able to find some XML Serialization code in ESAPIX/Extensions/SerializationExtensions.cs, but this seems to only deserialize. For unit testing it would be nice if this XML could be deserialized to the object model, but I have not found any options to do so. Are there any?

I would like to bump this issue as I agree with the above comment

From a private conversation with Mr Carden by email he stated he stopped the facade API since it is difficult to maintain and added a layer of complexity with multithreaded applications, he suggested Telerik Just Mock to fake VMS objects for unit tests.

We have not done so and are currently working on creating a solution internal to our institute, not sure if we will ever (be able to) open source it.