This repository contains a multi-layer application which was built for demonstration purposes. It contains a collection of patterns and services which are used in enterprise applications.
- Layered architecture
- Dependency injection using AutoFac
- Test-driven design
- EntityFramework code-first database context
- UnitOfWork and repository pattern
- Restful WCF service with JSON
- Diverse client technologies. Using DTOs to exchange information with the backend and ViewModels (MVVM) to bind model data to views.
Furthermore, the aim of this project was to show the interplay of the mentioned technologies, principles and practices.
- Authentication and authorization
- Cross-platform mobile clients
- Localization
- Input validation
- Filtering, grouping, sorting, paging of list items
Generic repository pattern, unit of work, entity framework in MVC
http://techbrij.com/generic-repository-unit-of-work-entity-framework-unit-testing-asp-net-mvc
Autofac for MVC
http://techbrij.com/autofac-ioc-container-asp-net-mvc-di
Autofac for WebApi
http://docs.autofac.org/en/latest/integration/webapi.html
Using Web API 2 with Entity Framework 6
http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-1
Dependency Injection in ASP.NET Web API 2
http://www.asp.net/web-api/overview/advanced/dependency-injection
Exception Handling in ASP.NET Web API
http://www.asp.net/web-api/overview/error-handling/exception-handling
Automated Testing of ASP.NET Web API and MVC applications
https://robdmoore.id.au/blog/2013/02/02/automated-testing-of-asp-net-web-api-and-mvc-applications/
Creating WCF REST services
http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services
Using MVVMLight in a WPF application
http://www.dotnetcurry.com/wpf/1037/mvvm-light-wpf-model-view-viewmodel
Configuring Relationships with the Fluent API
https://msdn.microsoft.com/en-us/data/jj591620.aspx
ASP.NET Web API Exception Handling
http://weblogs.asp.net/fredriknormen/asp-net-web-api-exception-handling
Mvc4CustomErrorPage
Exception Handling in WebAPI
http://www.codeproject.com/Articles/733512/Exception-Handling-in-WebAPI
Consuming WCF Services in Xamarin
http://www.nullskull.com/a/10476775/xamarin-cross-platform-application-consuming-wcf--part-1.aspx
http://nullskull.com/a/10476786/xamarin-cross-platform-application-consuming-wcf--part-2.aspx
Custom WCF message formatters (NewtonsoftJsonBehavior)
http://stackoverflow.com/questions/8082231/custom-behavior-wont-register-in-my-web-config
Copyright © 2015 Thomas Galliker. Free for non-commercial use. For commercial use please contact the author.