Skip to content

Instantly share code, notes, and snippets.

View fitzchak's full-sized avatar

Fitzchak Yitzchaki fitzchak

View GitHub Profile
@fitzchak
fitzchak / AttachmentsSessionTemp.cs
Created March 27, 2018 09:51
Compare attachments hash
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using FastTests;
using Raven.Client.Documents.Operations.Attachments;
using Raven.Server.Documents;
using Raven.Server.ServerWide.Context;
using Raven.Tests.Core.Utils.Entities;
using System;
using System.Runtime.Remoting.Messaging;
using System.Threading;
namespace AsyncLocalIsDifferentThanCallContext
{
class Program
{
public static AsyncLocal<int> AsyncLocal = new AsyncLocal<int>();
@fitzchak
fitzchak / gist:5213723
Created March 21, 2013 15:02
Test UserTokenTTL
using System;
using System.Diagnostics;
using System.Net;
using System.Threading;
using Raven.Client.Document;
using System.Linq;
namespace Raven.Tryouts
{
public class Album
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity.Config;
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.EntityClient;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Migrations.Sql;
using System.Data.Entity.SqlServer;
using System.Reflection;
// -----------------------------------------------------------------------
// <copyright file="PrefetchingBehavior.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Raven.Abstractions.Indexing;
using Raven.Client.Indexes;
using Xunit;
namespace Raven.Tests
{
@fitzchak
fitzchak / LocalizableEntities.cs
Created October 10, 2012 08:05 — forked from jesuslpm/LocalizableEntities.cs
Proposed model for localizable entities
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Xunit;
using Raven.Json.Linq;
using System.Diagnostics;
using Raven.Client;
@fitzchak
fitzchak / TestHelper.cs
Created June 25, 2012 09:07 — forked from haacked/TestHelper.cs
String Comparison Unit Test Helper
public static class StringTestHelpers
{
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue)
{
ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out);
}
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle)
{
ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out);