protected override IEnumerable <ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method) { if (IsUserAdministrator() == false) { return(new[] { new SkipCommand(method, method.Name, "Cannot be run without admin permissions") }); } return(base.EnumerateTestCommands(method)); }
protected override System.Collections.Generic.IEnumerable <Xunit.Sdk.ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method) { return(base.EnumerateTestCommands(method).Select(enumerateTestCommand => new ActionTestCommandWrapper(enumerateTestCommand, o => { ((ReplicateToSql)o).ConnectionString = connectionStringSettings; }))); }
protected override System.Collections.Generic.IEnumerable <Xunit.Sdk.ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method) { return(base.EnumerateTestCommands(method) .Select(enumerateTestCommand => new ActionTestCommandWrapper(enumerateTestCommand, o => ((PeriodicBackupTests)o).SetupAws(AwsAccessKey, AwsSecretKey)))); }