コード例 #1
0
 public static Product NotStarted(DateTime now)
 {
     var product = new Product("Product with campaign that hasn't started");
     product.CreateCampaign(now, Demographic.AllMembers, now.AddDays(1), now.AddDays(2));
     return product;
 }
コード例 #2
0
 public static Product Ended(DateTime now)
 {
     var product = new Product("Product with campaign that has ended");
     product.CreateCampaign(now, Demographic.AllMembers, now.AddDays(-2), now.AddDays(-1));
     return product;
 }
コード例 #3
0
 public static Product CurrentForAllMembers(DateTime now)
 {
     var product = new Product("Product with current campaign for all members");
     product.CreateCampaign(now, Demographic.AllMembers, now.AddDays(-1), now.AddDays(1));
     return product;
 }
コード例 #4
0
 public static Product CurrentForWaMembersBetween9And11YearsOld(DateTime now)
 {
     var product = new Product("Product with current campaign for WA members between 9 and 11");
     product.CreateCampaign(now, new Demographic(State.Wa, 9, 11), now.AddDays(-1), now.AddDays(1));
     return product;
 }
コード例 #5
0
 public static Product CurrentForAllActMembers(DateTime now)
 {
     var product = new Product("Product with current campaign for ACT members");
     product.CreateCampaign(now, new Demographic(State.Act, null, null), now.AddDays(-1), now.AddDays(1));
     return product;
 }