public void when_there_is_single_DataExplorer_return_it_as_default() { DataExplorer <string> .Register <StringDataExplorer>(); var dataExplorer = DataExplorer.CreateDefault("hello world"); dataExplorer.Should().BeOfType <StringDataExplorer>(); }
public void can_create_specific_DataExplorer_for_a_data_type() { DataExplorer <string> .Register <StringDataExplorer>(); DataExplorer <string> .Register <AdvancedStringDataExplorer>(); var dataExplorer = DataExplorer.Create("AdvancedStringDataExplorer", "hello world"); dataExplorer.Should().BeOfType <AdvancedStringDataExplorer>(); }
public void can_specify_default_DataExplorer_for_a_data_type() { DataExplorer <string> .Register <StringDataExplorer>(); DataExplorer <string> .Register <AdvancedStringDataExplorer>(); DataExplorer.SetDefault <string, AdvancedStringDataExplorer>(); var dataExplorer = DataExplorer.CreateDefault("hello world"); dataExplorer.Should().BeOfType <AdvancedStringDataExplorer>(); }