Exemplo n.º 1
0
 public void WorkerInterfacesSpecifyDefaultImplementation()
 {
     // Validate all interfaces in the Worker assembly define a valid service locator attribute.
     // Otherwise, the interface needs to whitelisted.
     var whitelist = new[]
     {
         typeof(IArtifactDetails),
         typeof(IArtifactExtension),
         typeof(ICodeCoverageEnabler),
         typeof(ICodeCoverageSummaryReader),
         typeof(IExecutionContext),
         typeof(IHandler),
         typeof(IJobExtension),
         typeof(IResultReader),
         typeof(ISourceProvider),
         typeof(IStep),
         typeof(ITfsVCMapping),
         typeof(ITfsVCPendingChange),
         typeof(ITfsVCShelveset),
         typeof(ITfsVCStatus),
         typeof(ITfsVCWorkspace),
         typeof(IWorkerCommandExtension),
     };
     Validate(
         assembly: typeof(IStepsRunner).GetTypeInfo().Assembly,
         whitelist: whitelist);
 }
Exemplo n.º 2
0
 public void AgentInterfacesSpecifyDefaultImplementation()
 {
     // Validate all interfaces in the Listener assembly define a valid service locator attribute.
     // Otherwise, the interface needs to whitelisted.
     var whitelist = new[]
     {
         typeof(ICapabilitiesProvider),
         typeof(ICredentialProvider),
     };
     Validate(
         assembly: typeof(IMessageListener).GetTypeInfo().Assembly,
         whitelist: whitelist);
 }
Exemplo n.º 3
0
 public void CommonInterfacesSpecifyDefaultImplementation()
 {
     // Validate all interfaces in the Common assembly define a valid service locator attribute.
     // Otherwise, the interface needs to whitelisted.
     var whitelist = new[]
     {
         typeof(IAgentService),
         typeof(ICredentialProvider),
         typeof(IExtension),
         typeof(IHostContext),
         typeof(ITraceManager),
         typeof(ISecret)
     };
     Validate(
         assembly: typeof(IHostContext).GetTypeInfo().Assembly,
         whitelist: whitelist);
 }