public void TestStorable() { var storage = new Mock <IStorageMedium>(MockBehavior.Strict); var storable = new Storable <MetroLineJSONSerializationStrategy>(storage.Object); storable.Serializer.Source = new MetroLineDetails("Inland Empire Line", Colors.Blue, 'A', "LA Union Station", "San Bernardino", true, true, 1969, LineType.NorthSouth, true); storable.Save(); }
public void Add(CaseFile caseFile) { _repository.Save(caseFile); }