public static ViewDefinition ToViewDefinition(this SparkDescriptor viewDescriptor) { var normal = viewDescriptor.ToSparkViewDescriptor(); var partial = viewDescriptor.ToPartialSparkViewDescriptor(); return(new ViewDefinition(normal, partial)); }
public void spark_view_descriptor_is_built_using_the_template_descriptor() { _definition.ViewDescriptor.ShouldEqual(_descriptor.ToSparkViewDescriptor()); }