public void SetUp() { this.storage = new Mock<IMetaDataStorage>(); this.session = new Mock<ISession>(); this.session.SetupTypeSystem(); this.remoteRootFolder = MockOfIFolderUtil.CreateRemoteFolderMock(this.rootId, "/", "/", null); this.session.AddRemoteObject(this.remoteRootFolder.Object); this.localRootFolder = MockOfIFileSystemInfoFactoryUtil.CreateLocalFolder(Path.GetTempPath()); this.mappedRootFolder = new MappedObject("/", this.rootId, MappedObjectType.Folder, null, "changeToken") { Guid = Guid.NewGuid() }; this.storage.Setup(s => s.GetObjectByLocalPath(It.Is<IDirectoryInfo>(d => d.Equals(this.localRootFolder.Object)))).Returns(this.mappedRootFolder); this.underTest = new LocalObjectMoved(this.session.Object, this.storage.Object); }