{"action":"opened","issue":{"url":"https://api.github.com/repos/mbdavid/LiteDB/issues/131","repository_url":"https://api.github.com/repos/mbdavid/LiteDB","labels_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/131/comments","events_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/131/events","html_url":"https://github.com/mbdavid/LiteDB/issues/131","id":136314632,"number":131,"title":"Test [DbRefIndexe_Test] fails due to hard coded path","user":{"login":"MaLioNet","id":17469545,"avatar_url":"https://avatars.githubusercontent.com/u/17469545?v=3","gravatar_id":"","url":"https://api.github.com/users/MaLioNet","html_url":"https://github.com/MaLioNet","followers_url":"https://api.github.com/users/MaLioNet/followers","following_url":"https://api.github.com/users/MaLioNet/following{/other_user}","gists_url":"https://api.github.com/users/MaLioNet/gists{/gist_id}","starred_url":"https://api.github.com/users/MaLioNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaLioNet/subscriptions","organizations_url":"https://api.github.com/users/MaLioNet/orgs","repos_url":"https://api.github.com/users/MaLioNet/repos","events_url":"https://api.github.com/users/MaLioNet/events{/privacy}","received_events_url":"https://api.github.com/users/MaLioNet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T08:12:38Z","updated_at":"2016-02-25T08:12:38Z","closed_at":null,"body":"```\r\n    [TestClass]\r\n    public class DbRefIndexTest {\r\n        [TestMethod]\r\n        public void DbRefIndexe_Test() {\r\n            var f = \"\";\r\n            //TODO: Remove string literal to arbirary path, perhaps use the assembly path\r\n            f = @\"C:\\Git\\LiteDB\\LiteDB.Shell\\bin\\Debug\\_dbref.db\";\r\n            File.Delete(f);\r\n\r\n            using (var db = new DbRefIndexDatabase(f)) {\r\n                var customer = new DCustomer { Login = \"jd\", Name = \"John Doe\" };\r\n                var order = new DOrder { OrderNumber = 1, Customer = customer };\r\n\r\n                db.Customers.Insert(customer);\r\n                db.Orders.Insert(order);\r\n\r\n                // create an index in Customer.Id ref\r\n                db.Orders.EnsureIndex(x => x.Customer.Login);\r\n\r\n                var query = db.Orders\r\n                    .Include(x => x.Customer)\r\n                    .FindOne(x => x.Customer.Login == \"jd\");\r\n\r\n                Assert.AreEqual(customer.Name, query.Customer.Name);\r\n            }\r\n        }\r\n    }\r\n```"}}