Beispiel #1
0
        private static CategoryEventData SetupCategoryBaseSynonymData()
        {
            CategoryEventData catEventData = new CategoryEventData();

            catEventData.Id        = "eventId-1234";
            catEventData.Subject   = "foo/catId-1234";
            catEventData.EventType = "CategorySynonymsUpdated";
            return(catEventData);
        }
Beispiel #2
0
        public static IList <CategoryEventData> SetupCategorySynonymsData()
        {
            List <CategoryEventData> categoryEvents    = new List <CategoryEventData>();
            CategoryEventData        categoryEventData = SetupCategoryBaseSynonymData();

            categoryEventData.Data          = new CategoryData();
            categoryEventData.Data.Synonyms = new List <string>(new string[] { "syn1", "syn2" });
            categoryEvents.Add(categoryEventData);

            return(categoryEvents);
        }
Beispiel #3
0
        public static IList <CategoryEventData> SetupCategoryImageData()
        {
            List <CategoryEventData> categoryEvents    = new List <CategoryEventData>();
            CategoryEventData        categoryEventData = SetupCategoryBaseImageData();

            categoryEventData.Data          = new CategoryData();
            categoryEventData.Data.ImageUrl = "https://microsoft.dummy.jpeg";
            categoryEvents.Add(categoryEventData);

            return(categoryEvents);
        }
Beispiel #4
0
        public static IList <CategoryEventData> SetupValidationCodeData()
        {
            List <CategoryEventData> categoryEvents    = new List <CategoryEventData>();
            CategoryEventData        categoryEventData = SetupCategoryBaseData();

            categoryEventData.Data = new CategoryData();
            categoryEventData.Data.ValidationCode = "testValidationCode";
            categoryEvents.Add(categoryEventData);

            return(categoryEvents);
        }