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);
 }