Пример #1
0
        public void SaveTempDataFilter_OnResourceExecuted_SavesTempData()
        {
            // Arrange
            var tempData = new Mock<ITempDataDictionary>(MockBehavior.Strict);
            tempData
                .Setup(m => m.Save())
                .Verifiable();

            var filter = new SaveTempDataFilter(tempData.Object);

            var context = new ResourceExecutedContext(new ActionContext(), new IFilterMetadata[] { });

            // Act
            filter.OnResourceExecuted(context);

            // Assert
            tempData.Verify();
        }
Пример #2
0
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
 }
Пример #3
0
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
     context.HttpContext.Response.Headers.Append(
         "filters", 
         Name + " - OnResourceExecuted");
 }
Пример #4
0
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 /// <inheritdoc />
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
 }
Пример #6
0
 /// <inheritdoc />
 public void OnResourceExecuted([NotNull] ResourceExecutedContext context)
 {
 }