GetObjectByGuid() public method

Gets the object by GUID.
public GetObjectByGuid ( System.Guid guid ) : IMappedObject
guid System.Guid GUID of the requested object.
return IMappedObject
        public void GetObjectByGuidReturnsSavedObject([Values(true, false)]bool withValidation) {
            var storage = new MetaDataStorage(this.engine, Mock.Of<IPathMatcher>(), withValidation);
            var uuid = Guid.NewGuid();
            var file = new MappedObject("name" , "rootId", MappedObjectType.File, null, "token") { Guid = uuid };
            storage.SaveMappedObject(file);

            Assert.That(storage.GetObjectByGuid(uuid), Is.EqualTo(file));
        }
 public void GetObjectByGuidReturnsNullIfNoEntryExists([Values(true, false)]bool withValidation) {
     var storage = new MetaDataStorage(this.engine, Mock.Of<IPathMatcher>(), withValidation);
     Assert.That(storage.GetObjectByGuid(Guid.NewGuid()), Is.Null);
 }