public void SetUp()
 {
     fileSystem = Substitute.For<FileSystem>((Config)null);
     fileSystem.ReadXmlFile().Returns(Resource.SimpleSource);
     timeContext = Substitute.For<TimeContext>();
     sut = new XmlDataModificator(timeContext, fileSystem);
 }
 public void SetUp()
 {
     timeContext = Substitute.For<TimeContext>();
     sut = new SimpleDataModificator(timeContext);
     reader = new SimpleDataRepresentator();
     var adapter = new InMemoryAdapter();
     Database.UseMockAdapter(adapter);
 }
 public void SetUp()
 {
     sut = new SimpleDataRepresentator();
     timeContext = Substitute.For<TimeContext>();
     tesеTime = new DateTime(2014, 10, 10);
     timeContext.Now().Returns(tesеTime);
     writer = new SimpleDataModificator(timeContext);
     var adapter = new InMemoryAdapter();
     Database.UseMockAdapter(adapter);
 }
 public SimpleDataModificator(TimeContext timeContext)
 {
     this.timeContext = timeContext;
 }
 public XmlDataModificator(TimeContext timeContext, FileSystem fileSystem)
 {
     this.timeContext = timeContext;
     this.fileSystem = fileSystem;
 }