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
| #rakefile.rb | |
| require 'rake' | |
| require 'albacore' | |
| task :default => [:full] | |
| task :full => [:clean,:assemblyInfo,:build,:xunitTests,:specifications,:publish] |
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 IList<Trade> GetComplianceReportTradesBy(ComplianceStatus complianceStatus) | |
| { | |
| return GetBy( | |
| x => x.ComplianceStatus == complianceStatus.ToString() | |
| && x.RecordType == TradeRecordType.ClientAllocation.ToString() | |
| && x.ComplianceExported == false | |
| && x.LineOfBusiness != LinesOfBusiness.SO.ToString() | |
| && x.Canceled == false | |
| && x.AddBust == "ADD") | |
| .OrderBy(x => x.Compliance_ParentOrderAcknowledgement).ToList(); |
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); | |
| } |
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
| 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.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
| 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
| <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
| 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
| 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; |