public NoteManager(INoteLoader noteLoader, INoteReader noteReader) { _noteReader = noteReader; _noteLoader = noteLoader; MyNotes = new ObservableCollection <MyNote>(_noteLoader.Load()); }
private NoteManager() { NoteLoader = ServiceLoaderFactory <INoteLoader> .CreateService(); NoteReader = ServiceLoaderFactory <INoteReader> .CreateService(); MyNotes = new ObservableCollection <MyNote>(NoteLoader.Load()); }