private static PositionRecordsDto CreateSingleEventUpdateDto(IDictionary <Guid, PositionRecord> currentSow, Guid member, UpdateTypeDto updateType) { var memberPosition = currentSow[member]; return(new PositionRecordsDto(new[] { new PositionRecordDto(memberPosition.Latitude, memberPosition.Longitude, memberPosition.MemberId) }, false, false)); }
private static CurrencyPairUpdatesDto CreateSingleEventUpdateDto(IDictionary <string, CurrencyPair> currentSow, string symbol, UpdateTypeDto updateType) { var ccyPairToDeactivate = currentSow[symbol]; return(new CurrencyPairUpdatesDto(new[] { new CurrencyPairUpdateDto { CurrencyPair = new CurrencyPairDto(ccyPairToDeactivate.Symbol, ccyPairToDeactivate.RatePrecision, ccyPairToDeactivate.PipsPosition), UpdateType = updateType } }, false, false)); }