Skip to content

Instantly share code, notes, and snippets.

View jakesays-old's full-sized avatar

Big Jake jakesays-old

View GitHub Profile
using System.IO;
using System.Net;
using System.Reflection;
using JetBrains.Annotations;
namespace Std.Utility.Process
{
public static class ProcessHelpers
{
private static string _applicationVersion;
@jakesays-old
jakesays-old / Fill.cs
Created August 14, 2017 17:46
Sample usage of property state tracking
using System;
using System.ComponentModel;
using Std.BasicTypes;
// ReSharper disable ImpureMethodCallOnReadonlyValueField
namespace Money.ViewSurface.ViewObjects
{
//lifted from .net's open source BitArray class.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Threading;
namespace Std.BasicTypes
{
@jakesays-old
jakesays-old / PropertyTrackingManager.cs
Created August 14, 2017 17:45
Property state tracking manager
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace Std.BasicTypes
{
[Serializable]
public struct PropertyTrackingManager
{
private readonly object _eventSender;
@jakesays-old
jakesays-old / TrackedBackingStore.cs
Created August 14, 2017 17:44
Struct that tracks the dirty state of a property
using System;
using System.Collections;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
namespace Std.BasicTypes
{
[Serializable]
public struct TrackedBackingStore<TStoreType>
@jakesays-old
jakesays-old / IConnection.cs
Created August 11, 2017 18:18
Connection abstraction lifted from WCF
using System;
using System.Diagnostics;
using System.Net;
using System.Threading;
using Std.Net.Support;
namespace Std.Net
{
public interface IConnection
{
@jakesays-old
jakesays-old / TestDataManager.cs
Last active June 13, 2017 11:21
Test resource helper class
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Text;
namespace Std.TestingSupport
{
public class TestDataManager
[Test]
public void HlSegmentParseTest()
{
ISegmentReader reader = null;
InterchangeParser<HealthCareClaim, ClaimParserContext> parser = null;
List<HealthCareClaim> claims = null;
ClaimParserContext context = null;
var claimCount = 0;
ITransactionParserFactory factory = null;
using System;
using System.Diagnostics;
using System.Linq;
using NUnit.Framework;
// ReSharper disable InconsistentNaming
namespace Std.TestingSupport
{
[TestFixture]
using System.IO;
using System.Net;
using System.Reflection;
using JetBrains.Annotations;
namespace Std.Utility.Process
{
public static class ProcessHelpers
{
private static string _applicationVersion;