2

I'm more acquainted with Java technologies and i'm running a project where i need to use the .Net framework for the backend. The goal of the project is to to expose a public api handling any request type PUT, POST, GET, DELETE. The payload will only be in JSON. The backend will be interacting with a database and third party libraries also written in .Net.

What are the technologies in .Net that are best suited for this. Is it Asp.Net with C#. Are there other framework people would recommend (Spring.Net for instance. Also There seems to be different version of .Net 3 & 4. Are all the versions equally valid for this type of project.

Finally what are the tools people use to develop, test unit and do integration test in the .Net environment.

Thank you ken

9
  • 1
    servicestack.net - stable, good documentation and test coverage with examples of tests/frameworks to use to test your api. "A fast, unified and integrated replacement for WCF, WebAPI and MVC" Commented Apr 16, 2013 at 21:58
  • regarding the C# detail, if you're acquainted with Java, then C# is the logical choice since the 2 languages are very similar syntactically (as opposed to the other .NET core programming language: VB) Commented Apr 16, 2013 at 22:14
  • @MohammadSepahvand the 2 languages are very similar syntactically I disagree. think of anonymous classes/lambdas/query syntax etc. But the most important difference is the ecosystem, tools/libraries/coding styles etc. Commented Apr 16, 2013 at 22:26
  • Java and C# Comparison Commented Apr 16, 2013 at 22:31
  • 1
    @MohammadSepahvand I think your c# knowledge is at least 6 years back. Just follow the C# tag on SO and see the difference. Commented Apr 16, 2013 at 23:17

2 Answers 2

5

ASP.NET Web API allows you to create RESTful services and work with JSON data. Normal ASP.NET MVC also allows you to send JSON between your client and server, but Web API is the future. You could use normal ASP.NET (web forms) or ASP.NET MVC, MVC allows you to have a better organisation of your presentation logic and is just awesome. When you use Web API along with ASP.NET MVC, web API will be in charge of dealing with your data, and your asp.net MVC will be in charge of serving up your views. There are tonnes of material out there on ASP.NET MVC and Web API, so I won't bother posting any here. Finally, if you want your application to be more interactive and are focusing on good UX, then you could integrate as much AJAX as possible into your apps and even better make use of javascript frameworks such as knockout to create a highly responsive UI. Here is a good write up on using Web API with Knockout.js. Also a must read book for aspiring asp.net MVC developers. The book covers unit testing with Visual Studio and Moq and Dependency Injection with Ninject briefly but well, you could unit test your javascript with Qunit, though it has nothing to do with .NET specifically.

Sign up to request clarification or add additional context in comments.

1 Comment

Any chance you've done continuous integration, what did you use for ? In Java world, i used Hudson. Thx
4

Have a look at WebAPI for building RESTful services, along with ASP.NET MVC 4 and C#. I would recommend Visual Studio 2012 and .NET Framework 4.5 if you are able to use these.

There are a variety of test frameworks in the .NET space (including MSTest, NUnit, and xUnit) and isolation frameworks such as Moq.

1 Comment

Why do you recommend Visual Studio 2012 and .Net 4.5 ? is there a substantial gain using these two comparing to older versions ?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.