MVVM and/or Unita Testing Support

Answered
0
0

Hi,

all this looks a lot like WinForms. I understand that this is the idea. But is there a way to modernize my code after porting from WinForms? I want to be able to do stuff like DI, MVVM/MVP and unit testing for display logic.

I couldn’t find any example containing unit tests or modern techniques to isolate view, presentation code and model code.

Regards,

Thomas

  • You must to post comments
Best Answer
0
1

Unit testing is fully supported. Just pick a .NET unit testing framework of your choice. How to write unit tests is unrelated to Wisej. For UI testing, being a web system, you have to use web UI testing tools and get familiar with things like selenium. We provide consulting services in that area. But there are a large number of resources around, however it can get quite tricky. Also unrelated to Wisej.

In terms of app architecture that’s also unrelated to Wisej. You can separate ui, logic, model, views in any way you like. There are many examples around. Most are, IMHO, written by people that have never seen a real app and just spend time writing blogs with trivial code. 🙂

In our projects we usually go for model, views and controllers (not to be confused with aspnet mvc). Other times we need to use orm systems. Other times existing code is too complex and we keep it as is.

In general, Wisej takes care of displaying server side components as javascript widgets. There is no other limitation to what you can do in C# or VB.NET or F# in .NET.

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.