public FakeProfileViewModel(ProfileRegister register, Profile state,
                             FakeProfileDataQueryFactory queryFactory,
                             FakeMailService mailService)
     : base(register)
 {
     MailBox     = new MailBoxViewModel(queryFactory, mailService);
     DisplayName = state.DisplayName;
 }
 public FakeProfileProvider(string providerId, string emailAddress, string displayName,
                            FakeProfileDataQueryFactory queryFactory, FakeMailService mailService)
 {
     _register = new ProfileRegister()
     {
         Id           = emailAddress,
         EmailAddress = emailAddress,
         DataFilePath = null,
         ProviderId   = providerId,
     };
     _viewModel = new FakeProfileViewModel(_register, new Profile()
     {
         DisplayName  = displayName,
         EmailAddress = emailAddress,
         ProviderId   = providerId,
     }, queryFactory, mailService);
     _viewModel.Restore();
 }