Exemple #1
0
        public WeblogLoggingExceptionHandlerAssemblerFixture()
        {
            var context       = new Mock <IBuilderContext>();
            var formatterData = new WeblogLoggingExceptionHandlerData();
            var configuration = new Mock <IConfigurationSource>();
            var cache         = new ConfigurationReflectionCache();

            var assembler = new WeblogLoggingExceptionHandlerAssembler();

            _hanadler = assembler.Assemble(context.Object, formatterData, configuration.Object, cache);
        }
Exemple #2
0
        public void LogCategory_Should_Be_Same_Which_Is_Passed_In_Constructor()
        {
            _formatterData = new WeblogLoggingExceptionHandlerData("foo", LogCategory);

            Assert.Equal(LogCategory, _formatterData.LogCategory);
        }
Exemple #3
0
        public void LogCategory_Should_Be_Empty_String_When_No_Category_Is_Passed_In_Constructor()
        {
            _formatterData = new WeblogLoggingExceptionHandlerData();

            Assert.Equal(string.Empty, _formatterData.LogCategory);
        }