This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class FailingTest : RavenTestBase | |
{ | |
[Test] | |
public void LookupValueFromDictionaryOnRelatedDocumentWithIntKey() | |
{ | |
using (var store = NewDocumentStore()) | |
{ | |
using (var session = store.OpenSession()) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using Raven.Abstractions.Data; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client; | |
using Raven.Client.Indexes; | |
using Raven.Tests.Helpers; | |
using Xunit; | |
namespace Marketplace.Tests.Unit.RavenDb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using Raven.Client.Indexes; | |
using Raven.Tests.Helpers; | |
using Xunit; | |
namespace Marketplace.Tests.Unit.RavenDb | |
{ | |
public class FailingRavenTests : RavenTestBase | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using Raven.Abstractions.Cluster; | |
using Raven.Abstractions.Replication; | |
using Raven.Client; | |
using Raven.Client.Document; | |
using Raven.Client.UniqueConstraints; | |
using Raven.Tests.Helpers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IDocumentStore Create() | |
{ | |
var store = new DocumentStore | |
{ | |
Url = BootstrapConfiguration.DatabaseUrl, | |
ApiKey = BootstrapConfiguration.WebClientDatabaseApiKey, | |
ResourceManagerId = _resourceManagerId, | |
EnlistInDistributedTransactions = false, | |
Conventions = | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NUnit.Framework; | |
using Raven.Abstractions.Replication; | |
using Raven.Client; | |
using Raven.Client.Document; | |
namespace Marketplace.Tests.Unit | |
{ | |
[TestFixture] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
using Raven.Tests.Helpers; | |
namespace Marketplace.Tests.Unit.RavenDb | |
{ | |
[TestFixture] | |
public class FailingRavenTests : RavenTestBase | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.groups.deleteMany({'flags.system': true}) | |
db.organisations.find({ name: 'FarmTo' }).forEach((org) => { | |
db.groups.insert({ | |
organisation: org._id, | |
name: "INTERNAL", | |
services: { | |
default: 31, | |
logistics: 31, | |
inventory: 31, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totalDocs": 2, | |
"limit": 25, | |
"offset": 0, | |
"elasped": 0, | |
"docs": [ | |
{ | |
"tags": [ | |
"jims farm" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"items": [ | |
{ | |
"name": "Wheat", | |
"types": [ | |
{ | |
"id": 9, | |
"name": "Winter Wheat" | |
}, |
OlderNewer