public void Create_GenericDef_Throws()
        {
            var    descriptor = new TaskOrchestrationDescriptor(typeof(TestOrchestration <>));
            var    creator    = new OrchestrationObjectCreator(descriptor);
            Action act        = () => creator.Create();

            act.Should().ThrowExactly <InvalidOperationException>();
        }
        public void CreateWithName_NotGeneric_Throws()
        {
            var    descriptor = TaskOrchestrationDescriptor.Create <TestOrchestration>();
            var    creator    = new OrchestrationObjectCreator(descriptor);
            Action act        = () => creator.Create(new TypeShortName(typeof(string)));

            act.Should().ThrowExactly <InvalidOperationException>();
        }
        public void Create_WrapperCreated()
        {
            var descriptor = TaskOrchestrationDescriptor.Create <TestOrchestration>();
            var creator    = new OrchestrationObjectCreator(descriptor);
            TaskOrchestration Orchestration = creator.Create();

            Orchestration.Should().NotBeNull();
            Orchestration.Should().BeOfType <WrapperOrchestration>()
            .Which.Descriptor.Should().Be(descriptor);
        }
 public void CreateWithName_GenericDef_ArgNull_Throws()
 {
     var    descriptor = new TaskOrchestrationDescriptor(typeof(TestOrchestration <>));
     var    creator    = new OrchestrationObjectCreator(descriptor);
     Action act        = () => creator.Create(default);