コード例 #1
0
 /// <summary>
 /// Creates a new instance of the persistence.
 /// </summary>
 /// <param name="persister">(optional) a persister component that loads and saves data from/to flat file.</param>
 public IdentifiableFilePersistence(JsonFilePersister <T> persister)
     : base(persister, persister)
 {
     _persister = persister;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of the persistence.
 /// </summary>
 /// <param name="persister">(optional) a persister component that loads and saves data from/to flat file.</param>
 public FilePersistence(JsonFilePersister <T> persister)
     : base(persister, persister)
 {
     _persister = persister;
 }
 public JsonFilePersisterTest()
 {
     _persister = new JsonFilePersister <PersistenceFixture.Dummy>();
 }