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
| protected void GetPriceDetails() | |
| { | |
| var oc = new MiddleTier.BLL.OrderConfirmation(); | |
| oc = OrderConfirmationUtility.GetOrderConfirmation(Convert.ToInt32(this.OrderConfirmationID)); | |
| var Quantity = oc.Quantity; | |
| var Paper = oc.Paper; | |
| var DeliverySpeed = oc.DeliverySpeed; |
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
| Fixed Object Ref exception when 1000 card quantity was selected. Encountered ugliest code base I've seen in years. Tweeted lots about it.. and fixed stupid HTML fucked-up-ed-ness. Word. |
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 class Trade | |
| { | |
| public virtual int TradeId { get; set; } | |
| // some other fields... | |
| public virtual int? PrimaryOrOpposingIndicator { get; set; } | |
| public static Func<Trade, bool> isStreetSide = x => x.PrimaryOrOpposingIndicator == 1; | |
| public static Func<Trade, bool> isClientAllocation = x => x.PrimaryOrOpposingIndicator == 3; | |
| public static Func<Trade, bool> isBlockLevel = x => x.PrimaryOrOpposingIndicator == 4; | |
| public static Func<Trade, bool> isStreetSideOrBlockLevel = x => x.PrimaryOrOpposingIndicator == 1 || x.PrimaryOrOpposingIndicator == 4; |
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 class MvcApplication : System.Web.HttpApplication | |
| { | |
| protected void Application_BeginRequest(object sender, EventArgs e) | |
| { | |
| var manager = IoC.Container.GetService<IUnitOfWorkManager>(); | |
| manager.Begin(); | |
| } |
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
| <table cellpadding="0" cellspacing="0" border="1" width="499" | |
| align="center"> | |
| <tr> | |
| <td background="IM^./images/AllLarge/electricity.jpgIM^" | |
| width="499" height="286"> | |
| <table cellpadding="0" cellspacing="0" border="0" width="499" | |
| height="286"> | |
| <tr align="right"> | |
| <td width="250"></td> | |
| <td valign="top" align="right"> |
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
| Establish context = () => | |
| { | |
| fileName = @"some path\\20110303_Executions_US.CSV"; | |
| fileSystem.GetFileName(fileName).Returns(@"20110303_Executions_US.CSV"); | |
| records = new[] | |
| { | |
| new SixOughtSixFileMap { Instruction = "combo no 1" }, | |
| new SixOughtSixFileMap { Instruction = "two" }, | |
| new SixOughtSixFileMap { Instruction = "three" }, | |
| new SixOughtSixFileMap { Instruction = "four" }, |
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.Linq; | |
| using Castle.Core.Configuration; | |
| using Castle.Facilities.QuartzIntegration; | |
| using Castle.MicroKernel.Facilities; | |
| using Castle.MicroKernel.Registration; | |
| using Quartz; | |
| using Quartz.Job; | |
| using Quartz.Spi; |
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
| PS C:\dev\Dahlia> .\build | |
| The term 'properties' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the | |
| spelling of the name, or if a path was included, verify that the path is correct and try again. | |
| At C:\dev\Dahlia\build.ps1:1 char:11 | |
| + properties <<<< { | |
| + CategoryInfo : ObjectNotFound: (properties:String) [], CommandNotFoundException | |
| + FullyQualifiedErrorId : CommandNotFoundException | |
| The term 'include' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe | |
| lling of the name, or if a path was included, verify that the path is correct and try again. |
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.Web.Mvc; | |
| namespace Ris.Conduit.Web.Controllers | |
| { | |
| public class HomeController : Controller | |
| { | |
| public ActionResult Index() | |
| { | |
| return View(); |
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 interface IHazAQuestionAbout<T> | |
| { | |
| IQueryable<T> AxinYou(IQueryable<T> items); | |
| } |