public static IStoryDal CreateStoryDal() { if (storyDal == null) { var p = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var dir = Path.Combine(p, "stories"); storyDal = new JsonFileDal(dir); } return(storyDal); }
public StoryManager(IStoryDal storyDal) { _storyDal = storyDal; }