Ejemplo n.º 1
0
 public ExpressionEvaluatorTestBase()
 {
     userAggregation = new UserAggregation()
     {
         HasPurchased      = true,
         Visits            = 20,
         VisitsBySubfolder = new System.Collections.Generic.List <string>()
         {
             "pt",
             "us"
         },
         PageViewsByDesigner = new Dictionary <string, int>()
         {
             { "des1", 2 },
             { "des2", 4 }
         },
         HasPromocodeAvailable = true,
         PageViewsCount        = 36,
         Returning             = true,
         LastKnownVisit        = new DateTime(2019, 1, 13),
         HasWishListProducts   = true,
         HasMultipleAddresses  = false,
         SpendLevel            = "xpto",
         AccessTier            = "tier1",
         NullProp = null
     };
 }
Ejemplo n.º 2
0
 public static UserAggregation CreateUserAggregation(string userid, int appid, int featureid, int totalpoints, int uses)
 {
     UserAggregation userAggregation = new UserAggregation();
     userAggregation.userid = userid;
     userAggregation.appid = appid;
     userAggregation.featureid = featureid;
     userAggregation.totalpoints = totalpoints;
     userAggregation.uses = uses;
     return userAggregation;
 }
Ejemplo n.º 3
0
 public void AddToUserAggregations(UserAggregation userAggregation)
 {
     base.AddObject("UserAggregations", userAggregation);
 }