WCF RIA Services Advanced Topics

Learn about security and unit testing in Silverlight 4 applications with WCF RIA Services
Course info
Rating
(19)
Level
Advanced
Updated
Sep 3, 2010
Duration
3h 26m
Table of contents
Authentication, authorization and profiles - part 1
Authentication, authorization and profiles - part 2
WCF Ria Services, MVVM Light and Unit Testing - part 1
WCF Ria Services, MVVM Light and Unit Testing - part 2
Description
Course info
Rating
(19)
Level
Advanced
Updated
Sep 3, 2010
Duration
3h 26m
Description

This course covers advanced topics in WCF RIA Services with Silverlight 4 including security and unit testing

About the author
About the author

Yacine has been involved in the development of database-driven, n-tier web applications for over 10 years. Over time he has taken on various roles, including development, project management, offshore platform management and technical consulting. He has helped build a few solutions for Microsoft North Africa.

More from the author
Introduction to Windows Phone 8
Intermediate
3h 59m
Apr 3, 2013
Windows 8 Store Apps Hands-on in 20 Lessons
Intermediate
5h 48m
Jan 28, 2013
More courses by Yacine Khammal
Section Introduction Transcripts
Section Introduction Transcripts

Authentication, authorization and profiles - part 2
Hello! This is part two of our two-part talk series on WCF RIA Services security. In part one, we covered the basics of authentication and profiles. And we saw how we can leverage the powerful underlying ASP. NET infrastructure. We looked at the RIA Services authentication machinery, both server side and client side. And in this part, we continue our exploration of the framework security features, and we look at some more advanced scenarios that involve custom application needs. So, we'll begin this talk with a quick look at transport security. That's obviously a big topic, but I just want to touch on the basic concepts and techniques that we need to ensure confidentiality and reliability of the data that we pass over the network. We'll then take a look at using roles in RIA Services, which is here again made a breeze by piggybacking on the ASP. NET infrastructure. Then we'll talk about authorization, which is the whole reason for having authentication and roles in the first place. And we'll see how simple it is in RIA Services to set up basic rules that meet the needs of many applications. We'll then move on to dig in a bit deeper into the authorization framework, and we'll see how we can build our own custom rules into our server application and how we can enforce these rules in our Silverlight client for a better user experience. And, finally, we'll return to the authentication topic to look at more advanced yet common scenarios that involve working with a custom data access later.

WCF Ria Services, MVVM Light and Unit Testing - part 1
Welcome to this two-part talk on using MVVM in RIA Services applications. In these sessions, we'll take a close look at how the MVVM approach can help us improve our RIA Services Silverlight client. And in doing so, we'll look at two external frameworks--the MVVM Light toolkit and the Silverlight Unit Testing Framework. And in part two, we'll actually see how we can use both of these frameworks to automate testing in our RIA Services applications. We'll start off with a brief overview of the MVVM pattern, what it is, what it's for, and what it's composed of. And, of course, we'll examine these aspects always from a RIA Services point of view. Then we'll zoom in on a particular MVVM implementation, the Open Source MVVM Light toolkit. We'll take a tour of the framework and its assemblies, and we'll see how we can easily build a RIA Services client on top of these assemblies by using the Visual Studio templates that are provided in the toolkit. In the third part of this session, we'll talk about commanding and how it allows us to decouple our client gesture logic from the UI. We'll implement some actions in our demo application using the toolkits RelayCommand implementation. And we'll see how the EventToCommand behavior allows us to extend the commanding approach to all UI elements.

WCF Ria Services, MVVM Light and Unit Testing - part 2
In part one of this two-part series, we looked at the MVVM pattern and how we can implement the pattern in our RIA Services apps using the MVVM Light toolkit. In this part, we'll look at some of the more advanced functionality of the toolkit. And then we explore some of the benefits of the MVVM approach through a quick look at unit testing in our RIA Services client. As we'll see, the MVVM Light toolkit provides a messaging infrastructure that's instrumental in reducing the dependencies in our RIA Services clients. And we'll examine this infrastructure, and we'll see how we can build these techniques into our client application. Next, we'll zoom in on the topic of testing. We'll talk about how MVVM improves testability but also how out-of-the-box RIA Services applications come with other dependencies that can get in the way of adequate testing. And, of course, we'll look at ways around those constraints, namely through mocking. And we'll finish up with a close-up on the Silverlight Unit Testing Framework and its asynchronous testing capabilities. And we'll see what that is and how we can use it to build better client code.