C# Class WebApplications.Utilities.Scheduling.Test.SchedulerTester

显示文件 Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
AddTest ( [ schedule, [ expectedResults, ScheduledFunction function = null ) : ScheduledFunction
AddTest ( [ scheduledFunction, [ expectedResults ) : ScheduledFunction
CheckResults ( ) : void
Completed ( ) : bool
OutputResult ( ScheduledFunctionResult result ) : void
OutputResult ( ScheduledFunctionResult result, DateTime startTime, TimeSpan expectedTimeSpan, bool failed = false ) : void
Run ( ) : void
SchedulerTester ( )
SetStartTime ( ) : void
Start ( ) : void
Stop ( ) : void
WaitForStartOfSecond ( bool requireEven = false ) : void

Method Details

AddTest() public method

public AddTest ( [ schedule, [ expectedResults, ScheduledFunction function = null ) : ScheduledFunction
schedule [
expectedResults [
function ScheduledFunction
return ScheduledFunction

AddTest() public method

public AddTest ( [ scheduledFunction, [ expectedResults ) : ScheduledFunction
scheduledFunction [
expectedResults [
return ScheduledFunction

CheckResults() public method

public CheckResults ( ) : void
return void

Completed() public method

public Completed ( ) : bool
return bool

OutputResult() public static method

public static OutputResult ( ScheduledFunctionResult result ) : void
result ScheduledFunctionResult
return void

OutputResult() public static method

public static OutputResult ( ScheduledFunctionResult result, DateTime startTime, TimeSpan expectedTimeSpan, bool failed = false ) : void
result ScheduledFunctionResult
startTime DateTime
expectedTimeSpan TimeSpan
failed bool
return void

Run() public method

public Run ( ) : void
return void

SchedulerTester() public method

public SchedulerTester ( )

SetStartTime() public method

public SetStartTime ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WaitForStartOfSecond() public static method

public static WaitForStartOfSecond ( bool requireEven = false ) : void
requireEven bool
return void