C# Class Dev2.Activities.Specs.Scheduler.SchedulerSteps

ファイルを表示 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
AccountExists ( string name ) : bool
AddUserToGroup ( string groupName, System.DirectoryServices.AccountManagement.PrincipalContext context, System.DirectoryServices.AccountManagement.UserPrincipal user ) : void
CreateLocalWindowsAccount ( string username, string password, string groupName ) : bool
GetUserSecurityIdentifier ( string name ) : System.Security.Principal.SecurityIdentifier
UpdateTrigger ( IScheduledResource task, TechTalk.SpecFlow.Table table ) : void

Private Methods

Method Description
CreateScheduleTrigger ( TechTalk.SpecFlow.Table table ) : Microsoft.Win32.TaskScheduler.Trigger
GetDays ( string split ) : DaysOfTheWeek
GivenExecutesAnWorkflow ( string scheduleName, string workFlow ) : void
GivenHasAScheduleOf ( string scheduleName, TechTalk.SpecFlow.Table table ) : void
GivenHasAUsernameOfAndAPasswordOf ( string scheduleName, string userName, string password ) : void
GivenIHaveASchedule ( string scheduleName ) : void
GivenTaskHistoryIs ( string scheduleName, int history ) : void
GivenTheTaskStatusIs ( string schedule, string status ) : void
ThenHasRowOfHistory ( string scheduleName, int history ) : void
ThenTheHistoryDebugOutputForForRowIs ( string p0, int p1, TechTalk.SpecFlow.Table table ) : void
ThenTheScheduleStatusIs ( string status ) : void
ThenTheScheduleTaskHasError ( string error ) : void
WhenTheIsExecutedTimes ( string scheduleName, int times ) : void

Method Details

AccountExists() public static method

public static AccountExists ( string name ) : bool
name string
return bool

AddUserToGroup() public static method

public static AddUserToGroup ( string groupName, System.DirectoryServices.AccountManagement.PrincipalContext context, System.DirectoryServices.AccountManagement.UserPrincipal user ) : void
groupName string
context System.DirectoryServices.AccountManagement.PrincipalContext
user System.DirectoryServices.AccountManagement.UserPrincipal
return void

CreateLocalWindowsAccount() public static method

public static CreateLocalWindowsAccount ( string username, string password, string groupName ) : bool
username string
password string
groupName string
return bool

GetUserSecurityIdentifier() public static method

public static GetUserSecurityIdentifier ( string name ) : System.Security.Principal.SecurityIdentifier
name string
return System.Security.Principal.SecurityIdentifier

UpdateTrigger() public method

public UpdateTrigger ( IScheduledResource task, TechTalk.SpecFlow.Table table ) : void
task IScheduledResource
table TechTalk.SpecFlow.Table
return void