protected override bool Check(Call call, LogRegistry logRegistry) { var simpleAction = call.GetAction(); if (!simpleAction.IsObjTypeOf<TestActions.LogExtensions>()) return false; var logExtensions = simpleAction.CastObj<TestActions.LogExtensions>(); logExtensions.SetConditionLog(); return true; }
public virtual void Setup() { ElementFactory = null; logRegistry = new LogRegistry(new ListStorage()); logConfig = new LogConfig() { TimestampPath = "TimePath", LogMessagePath = "MessagePath" }; }
protected internal abstract void Apply(Call call, LogRegistry logRegistry);
protected internal abstract void Handle(ExecutionException executionException, LogRegistry logRegistry);
protected internal abstract void Action(Call call, LogRegistry logRegistry);
protected internal abstract bool Check(Call call, LogRegistry logRegistry);
protected override void Apply(Call call, LogRegistry logRegistry) { var logExtensions = call.GetActionAs<TestActions.LogExtensions>(); logExtensions.SetPreEventLog(); }
protected override void Handle(ExecutionException executionException, LogRegistry logRegistry) { var logExtensions = executionException.Call.GetActionAs<TestActions.LogExtensions>(); logExtensions.SetExceptionHandlerLog(); }
protected override void End(Call call, LogRegistry logRegistry) { var logExtensions = call.GetActionAs<TestActions.LogExtensions>(); logExtensions.SetSessionEndLog(); }
protected override void Action(Call call, LogRegistry logRegistry) { var logExtensions = call.GetActionAs<TestActions.LogExtensions>(); logExtensions.SetRecklessLog(); }