Beispiel #1
0
            public void should_add_info_objects_registered_by_alias_when_present()
            {
                var metadata2 = new Custom2MetaData();
                var metadatas = new IWorkflowObjectMetadata[] { metadata2 };
                var logger    = MockRepository.GenerateMock <ILogger>();

                ClarifyApplicationFactory.RegisterWorkflowMetadata(metadatas, logger);

                WorkflowObjectInfo.GetObjectInfo(metadata2.Alias).ShouldBeTheSameAs(metadata2.Register());
            }
Beispiel #2
0
            public void should_add_info_objects_returned_by_register()
            {
                var metadata1 = new Custom1MetaData();
                var metadatas = new IWorkflowObjectMetadata[] { metadata1 };
                var logger    = MockRepository.GenerateMock <ILogger>();

                ClarifyApplicationFactory.RegisterWorkflowMetadata(metadatas, logger);

                WorkflowObjectInfo.GetObjectInfo(metadata1.Register().ObjectName).ShouldBeTheSameAs(metadata1.Register());
            }