public void AddOrchestrationGeneric_ArgumentNull(string name, string version) => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration <TestOrchestration>( Mock.Of <ITaskHubWorkerBuilder>(), name, version));
public void AddOrchestrationType_ArgumentInvalidType2(Type type) => RunTestException <ArgumentException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( Mock.Of <ITaskHubWorkerBuilder>(), type, Name, Version));
public void AddOrchestrationGeneric_ArgumentNullBuilder2() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration <TestOrchestration>( null, Name, Version));
public void AddOrchestrationType_ArgumentNull(Type type, string name, string version) => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( Mock.Of <ITaskHubWorkerBuilder>(), type, name, version));
public void AddOrchestrationType_ArgumentEmptyName() => RunTestException <ArgumentException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( Mock.Of <ITaskHubWorkerBuilder>(), typeof(TestOrchestration), string.Empty, Version));
public void AddOrchestrationType_ArgumentNullType() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( Mock.Of <ITaskHubWorkerBuilder>(), (Type)null));
public void AddOrchestrationDescriptor_ArgumentNullDescriptor() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( Mock.Of <ITaskHubWorkerBuilder>(), (TaskOrchestrationDescriptor)null));
public void AddOrchestrationType_ArgumentNullBuilder2() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( null, typeof(TestOrchestration), Name, Version));
public void AddOrchestrationDescriptor_ArgumentNullBuilder() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration( null, new TaskOrchestrationDescriptor(typeof(TestOrchestration))));
public void AddOrchestrationGeneric_ArgumentInvalidType2() => RunTestException <ArgumentException>( _ => TaskHubWorkerBuilderOrchestrationExtensions.AddOrchestration <AbstractOrchestration>( Mock.Of <ITaskHubWorkerBuilder>(), Name, Version));