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_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>(); }