public void LoadFrom_Config_TestMethod()
        {
            EventMaps testObj = new EventMaps();

            testObj.LoadFromConfig();

            var evtClass = testObj.CreateEventClass("Mock Event One");

            Assert.IsNotNull(evtClass);
        }
Esempio n. 2
0
        public static IServiceCollection AddEventMaps(this IServiceCollection services)
        {
            // Create the event maps singleton
            services.AddSingleton <IEventMaps, EventMaps>(maps => {
                EventMaps ret = new EventMaps();
                ret.LoadFromConfig(context.FunctionAppDirectory);
                return(ret);
            });


            return(services);
        }