public static Offer CreateStemmingOffer(string offerName = null, string createdBy = null, double daysFromNowToExpire = 10, Offer.StatusType status = Offer.StatusType.Pending)
        {
            if (string.IsNullOrEmpty(offerName))
            {
                offerName = "Early Bird Drink Special";
            }

            if (string.IsNullOrEmpty(createdBy))
            {
                createdBy = ObjectId.GenerateNewId().ToString();
            }

            var offer = new Offer
            {
                Id          = ObjectId.GenerateNewId().ToString(),
                ProfileId   = createdBy = ObjectId.GenerateNewId().ToString(),
                Category    = "Drinks",
                CreatedBy   = createdBy,
                Description = "Get your drink on early with our early bird happy hour from 3-5pm",
                Details     = new Dictionary <string, string>
                {
                    { "percent", "20" },
                    { "code", "QASE3456G" }
                },
                Expires  = DateTime.Now.AddDays(daysFromNowToExpire),
                Keywords = new List <string>
                {
                    "drink",
                    "gojuice",
                    "gofastjuice"
                },
                Name        = offerName,
                Status      = status,
                IsRecurring = false
            };

            return(offer);
        }
        public static Offer CreateOffer(string offerName = null, string createdBy = null, double daysFromNowToExpire = 10, Offer.StatusType status = Offer.StatusType.Pending)
        {
            if (string.IsNullOrEmpty(offerName))
            {
                offerName = "Duck n Coffee discount";
            }

            if (string.IsNullOrEmpty(createdBy))
            {
                createdBy = ObjectId.GenerateNewId().ToString();
            }

            var offer = new Offer
            {
                Id          = ObjectId.GenerateNewId().ToString(),
                ProfileId   = createdBy = ObjectId.GenerateNewId().ToString(),
                Category    = "discounts",
                CreatedBy   = createdBy,
                Description = "20% off coffee when you buy a duck~ O< quack!",
                Details     = new Dictionary <string, string>
                {
                    { "percent", "20" },
                    { "code", "QASE3456G" }
                },
                Expires  = DateTime.Now.AddDays(daysFromNowToExpire),
                Keywords = new List <string>
                {
                    "discounts",
                    "coffee",
                    "joe",
                    "gojuice",
                    "gofastjuice",
                    "get some"
                },
                Name        = offerName,
                Status      = status,
                IsRecurring = false
            };

            return(offer);
        }