Created
August 22, 2012 15:44
-
-
Save jchannon/3426916 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RecordedItem | |
{ | |
} | |
public interface IRecordedItemsProcessor | |
{ | |
ObservableCollection<RecordedItem> Load(string name); | |
void Save(); | |
} | |
public interface IRecordedItemParser<T> | |
{ | |
RecordedItem Parse(T itemToParse); | |
} | |
public class FileParser: IRecordedItemParser<string> | |
{ | |
public RecordedItem Parse(string itemToParse) | |
{ | |
return null; | |
} | |
} | |
public class FileLoadingProcessor : IRecordedItemsProcessor | |
{ | |
private readonly FileParser _parser; | |
public FileLoadingProcessor(FileParser parser) | |
{ | |
_parser = parser; | |
_parser.Parse(""); | |
} | |
public ObservableCollection<RecordedItem> Load(string name) | |
{ | |
} | |
public void Save() | |
{ | |
} | |
} | |
public class MyClass | |
{ | |
private readonly IRecordedItemsProcessor _processor; | |
public MyClass(IRecordedItemsProcessor processor) | |
{ | |
_processor = processor; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment