コード例 #1
0
 public static UserLoginInfo ValidUserLoginInfo(string name)
 {
     var userLoginInfo = new UserLoginInfo
     {
         Password = name,
         UserClientSettings = new UserClientSettings(),
         UserPreferenceses = new UserPreferences()
     };
     userLoginInfo.AddNewCurrentUserSubscription(new UserSubscription
                                           {
                                               EntityId = 1,
                                               CreateDate = DateTime.Parse("1/5/1972"),
                                               Current = true,
                                               PortfolioSubscriptionLevel = new PortfolioSubscriptionLevel(),
                                               Promotion = new Promotion()
                                           });
     userLoginInfo.User = ValidUser(name);
     return userLoginInfo;
 }