Skip to content

Instantly share code, notes, and snippets.

View kijanawoodard's full-sized avatar

Kijana Woodard kijanawoodard

View GitHub Profile
@kijanawoodard
kijanawoodard / StreamingTest.cs
Created August 4, 2014 14:53
RavenDB Streaming generic with etag
public class StreamingTest : RavenTestBase
{
[Fact]
public void Should_respect_generic_parameter()
{
using (var store = NewDocumentStore())
{
using (var session = store.OpenSession())
{
session.Store(new Bear());
@kijanawoodard
kijanawoodard / post.cs
Created September 16, 2014 23:34
IPP DevDefined POST TaxService
/* post
{
"TaxCode": "MyTaxCodeName",
"TaxRateDetails": [
{
"TaxRateName": "myNewTaxRateName",
"RateValue": "8",
"TaxAgencyId": "1",
"TaxApplicableOn": "Sales"
}
@kijanawoodard
kijanawoodard / Program.cs
Last active August 29, 2015 14:07
Voron Scratch Buffers
namespace VoronScratchTest
{
class Program
{
static void Main(string[] args)
{
using (
var store =
new DocumentStore
{
new Line
{
DetailType = LineDetailTypeEnum.PaymentLineDetail,
DetailTypeSpecified = true,
Amount = amount,
AmountSpecified = true,
LinkedTxn = new[]
{
@kijanawoodard
kijanawoodard / gist:2889089
Created June 7, 2012 14:28
RavenDB - Grouping multiple fields into one searchable field, but hiding the dangling field with an explicit interface
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client.Linq;
using Xunit;
@kijanawoodard
kijanawoodard / gist:2889006
Created June 7, 2012 14:09
RavenDB - Grouping multiple fields into one searchable field
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client.Linq;
using Xunit;
@kijanawoodard
kijanawoodard / gist:2889083
Created June 7, 2012 14:28
RavenDB - Grouping multiple fields into one searchable field, but hiding the dangling field with an explicit interface
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client.Linq;
using Xunit;
public class SummarizeTests2 : IDisposable
{
protected DateTimeOffset Now { get; private set; }
protected EmbeddableDocumentStore DocumentStore { get; private set; }
protected IDocumentSession Session { get; private set; }
public SummarizeTests2()
{
Now = DateTimeOffset.Now;
@kijanawoodard
kijanawoodard / gist:3071379
Created July 8, 2012 15:44
Searching Multiple Nested Fields
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client.Linq;
using Xunit;
namespace RavenIssues
@kijanawoodard
kijanawoodard / gist:3071606
Created July 8, 2012 16:20
CoWorker Test
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client.Linq;
using Xunit;
namespace RavenIssues