public LogAttributeOnActionExecutedHttpGetFixture() { _memoryAppender = new MemoryAppender(); BasicConfigurator.Configure(_memoryAppender); _sut = new LogAttribute(); _context = ObjectMother.CreateActionActionExecutedContextFake(); Mock.Get(_context.HttpContext.Request).SetupGet(r => r.HttpMethod).Returns("GET"); }
public LogAttributeOnExceptionFixture() { _memoryAppender = new MemoryAppender(); BasicConfigurator.Configure(_memoryAppender); var sut = new LogAttribute(); var context = ObjectMother.CreateExceptionContextFake(); sut.OnException(context); }