CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: togakangaroo
C#
[Xunit.Extensions.ContextSpecification.Concern("Exploratory")]
 public class StructuremapProfiles
 {
     Container _container;
     public StructuremapProfiles()
     {
         _container = new StructureMap.Container();
         _container.Configure(x =>
         {
             x.Profile("C", y =>
by togakangaroo   November 11, 2010 @ 6:45am
128 Views
no comments
 
C#
public class StructuremapProfiles
{
    Container _container;
    public StructuremapProfiles()
    {
        _container = new StructureMap.Container();
        _container.Configure(x =>
        {
            x.Profile("A", y => y.For<IMyInterface>().Use<Implementor1>());
            x.Profile("B", y => y.For<IMyInterface>().Use<Implementor2>());
by togakangaroo   November 09, 2010 @ 9:35am
98 Views
no comments
 
C#
public class StoredProcedureGateway : IExternalSystemGateway {
  public object Call(string procedure, object[] params) {
    // call sproc
  }
}
 
public class SomeStoredProcedureParameters : IIssueExternalCalls {
  public string SomeString;
  public int SomeInt; 
  public object IssueWith(IExternalSystemGateway gateway) {
by togakangaroo   August 30, 2010 @ 10:59am
167 Views
no comments
 
C#
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PCS.Data.Tests.NHiberanteToPSNC;
using MbUnit.Framework;
using NHibernate.Cfg;
using PCS.Core.Extensions;
using NHibernate.Engine;
using NHibernate.Impl;
using NHibernate.Event;
using NHibernate;
by togakangaroo   August 30, 2010 @ 7:04am
Tags:
439 Views
no comments
 
XML
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="PCS.Domain"
                   namespace="PCS.Domain.FolderHierarchy">
  <class name="FolderHierarchyNode" table="NODES">
    <id name="Id" column="PK_NODES" type="System.Guid" unsaved-value="00000000-0000-0000-0000-000000000000">
      <generator class="guid" />
    </id>
    <discriminator column="NDETYPE" type="String" />
    <property name="Name" column="NDELNAME" />
by togakangaroo   August 29, 2010 @ 3:07pm
Tags:
281 Views
no comments
 
C#
public interface IHierarchyCommand
{
}
public class RenameNodeCommand : IHierarchyCommand
{
    public const string Name = "Rename";
    public RenameNodeCommand(FolderHierarchyNode node)
    {
    }
    public void Execute(string newName)
by togakangaroo   August 25, 2010 @ 12:02pm
Tags:
108 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate