public void EnableAuditingPage() { var options = new AuditingOptions(); options.GetOption <bool>(nameof(AuditingOptionsExtensions.IsAuditingPage)).ShouldBeFalse(); options.EnableAuditingPage(); options.GetOption <bool>(nameof(AuditingOptionsExtensions.IsAuditingPage)).ShouldBeTrue(); }
public void DisableAuditingController() { var options = new AuditingOptions(); options.GetOption <bool>(nameof(AuditingOptionsExtensions.IsAuditingController)).ShouldBeFalse(); options.EnableAuditingController(); options.GetOption <bool>(nameof(AuditingOptionsExtensions.IsAuditingController)).ShouldBeTrue(); options.DisableAuditingController(); options.GetOption <bool>(nameof(AuditingOptionsExtensions.IsAuditingController)).ShouldBeFalse(); }
/// <summary> /// /// </summary> /// <param name="options"></param> /// <returns></returns> public static bool IsAuditingPage(this AuditingOptions options) => options.GetOption <bool>(nameof(IsAuditingPage));
/// <summary> /// /// </summary> /// <param name="options"></param> /// <returns></returns> public static bool IsAuditingController(this AuditingOptions options) => options.GetOption <bool>(nameof(IsAuditingController));