Created
May 6, 2012 20:20
-
-
Save anonymous/2624206 to your computer and use it in GitHub Desktop.
Helper for tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using FluentAssertions.EventMonitoring; | |
using SilverlightValidation.Models; | |
using SilverlightValidation.Tests.Fakes; | |
using SilverlightValidation.ViewModels; | |
namespace SilverlightValidation.Tests.Helpers | |
{ | |
public class Helper | |
{ | |
public static UserViewModel CreateDefaultUserViewModel() | |
{ | |
var vm = new UserViewModel(UserModel.Create(), UserModelValidatorFake.Create()); | |
vm.MonitorEvents(); | |
return vm; | |
} | |
public static UserViewModel CreateInvalidUserViewModel() | |
{ | |
var vm = new UserViewModel(UserModel.Create(), UserModelValidatorFake.Create()); | |
vm.MonitorEvents(); | |
return vm; | |
} | |
public static UserViewModel CreateValidUserViewModel() | |
{ | |
var vm = new UserViewModel(UserModel.Create("dummy", "Dummy1", "dummy@dummy.com", new DateTime(1977, 01, 01)), UserModelValidatorFake.Create()); | |
vm.MonitorEvents(); | |
return vm; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment