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();
        }
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
 }
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
     context.HttpContext.Response.Headers.Append(
         "filters", 
         Name + " - OnResourceExecuted");
 }
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 /// <inheritdoc />
 public void OnResourceExecuted(ResourceExecutedContext context)
 {
 }
Beispiel #6
0
 /// <inheritdoc />
 public void OnResourceExecuted([NotNull] ResourceExecutedContext context)
 {
 }