private void SetUpMocks() { this.newParentPath = Path.Combine(Path.GetTempPath(), this.newParentName); this.newPath = Path.Combine(this.newParentPath, this.newName); this.manager = new TransmissionManager(); this.session = new Mock<ISession>(); this.session.SetupTypeSystem(); this.storage = new Mock<IMetaDataStorage>(); var newParentObj = new MappedObject( this.newParentName, this.newParentId, MappedObjectType.Folder, null, this.changeToken) { Guid = this.newParentUuid }; this.storage.AddMappedFolder(newParentObj); this.fsFactory = new Mock<IFileSystemInfoFactory>(); this.changeSolver = new Mock<LocalObjectChangedRemoteObjectChanged>( this.session.Object, this.storage.Object, null, this.manager, this.fsFactory.Object); this.renameSolver = new Mock<LocalObjectRenamedRemoteObjectRenamed>( this.session.Object, this.storage.Object, this.changeSolver.Object); this.session.AddRemoteObjects(Mock.Of<IFolder>(o => o.Id == this.oldParentId), Mock.Of<IFolder>(o => o.Id == this.newParentId)); this.underTest = new LocalObjectMovedRemoteObjectRenamed(this.session.Object, this.storage.Object, this.changeSolver.Object, this.renameSolver.Object); }