Пример #1
0
        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();
        }
Пример #2
0
 public void Add(CaseFile caseFile)
 {
     _repository.Save(caseFile);
 }