public void AddFirstTest() { list.Add(1, 3); Assert.AreEqual(3, list.GetValue(1)); list.Add(1, 5); Assert.AreEqual(5, list.GetValue(1)); }
public List <MenuItem> MainMenu() { List <Category> cat = new List <Category>(); List <ContentLanguage> contentLanguages = null; using (var db = new CoreCmsDbContext()) { contentLanguages = db.ContentLanguages.Join(db.Categories, cl => cl.Id, c => c.Id, (cl, c) => new { Cl = cl, C = c }) .Select(i => i.Cl).ToList(); cat = db.Categories.Where(i => i.ShowInFrontEnd).ToList(); } return(cat.Where(i => i.ParentId == null || i.ParentId == Guid.Empty).Select(c => new MenuItem() { Id = c.Id, Title = contentLanguages.GetValue(c.Id, "Title"), SeoUrlFriendly = contentLanguages.GetValue(c.Id, "SeoUrlFriendly") , DisplayOrder = c.DisplayOrder, SubItems = cat.Where(i => i.ParentId == c.Id) .Select(s => new MenuItem() { Id = s.Id, Title = contentLanguages.GetValue(s.Id, "Title"), DisplayOrder = s.DisplayOrder, SeoUrlFriendly = contentLanguages.GetValue(s.Id, "SeoUrlFriendly") }).OrderBy(i => i.DisplayOrder).ToList() }).OrderBy(i => i.DisplayOrder).ToList()); }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { WriteAndReadToDisk( logger, parameters.GetValue<int>(0), parameters.GetValue<long>(1)); }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { RequestRiverBedHomePageMultiThreaded( logger, parameters.GetValue<int>(0), parameters.GetValue<int>(1)); }
/// <summary> /// 查询 /// </summary> /// <param name="parameters"></param> /// <param name="sqlId"></param> /// <returns></returns> public PageInfo <TFEntity> GetListByPage(List <Parameter> parameters, string sqlId = DefaultSqlId.GetListByPage + "," + DefaultSqlId.GetRecord) { var sqlIds = new string [2]; if (string.IsNullOrEmpty(sqlId) || sqlId.Split(',').Length != 2) { sqlIds [0] = DefaultSqlId.GetListByPage; sqlIds [1] = DefaultSqlId.GetRecord; } else { sqlIds = sqlId.Split(','); } var pageData = _dao.GetListByPage(parameters.ToDbParameters(), sqlIds [0]); var records = _dao.GetRecord(parameters.ToDbParameters(), sqlIds [1]); return(new PageInfo <TFEntity> { page = parameters.GetValue("PAGENUM").ToString(), records = records.ToString(), rows = pageData, total = (records / Convert.ToInt32(parameters.GetValue("PAGESIZE")) + (records % Convert.ToInt32(parameters.GetValue("PAGESIZE")) == 0 ? 0 : 1)).ToString() }); }
public void Add_5_To_2_PositionTest() { list.AddValue(1, 0); list.AddValue(1, 0); list.AddValue(5, 2); Assert.AreEqual(list.GetValue(2), 5); }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { SumNumbersInArray( logger, parameters.GetValue<long>(0), parameters.GetValue<int>(1)); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ContentService_Saving(IContentService sender, SaveEventArgs <IContent> e) { List <SettingsModel> settings = _settingsService.Get().Settings; if (!settings.GetValue <bool>(KnownSettings.BindSaveHandler)) { return; } var cancelSaveOnFail = settings.GetValue <bool>(KnownSettings.CancelSaveOnFail); IContent content = e.SavedEntities.First(); bool failed = _contentChecker.CheckContent(content, true); // at least one property on the current document fails the preflight check if (!failed) { return; } // these values are retrieved in the notifications handler, and passed down to the client HttpContext.Current.Items["PreflightFailed"] = true; HttpContext.Current.Items["PreflightCancelSaveOnFail"] = cancelSaveOnFail; HttpContext.Current.Items["PreflightNodeId"] = content.Id; if (e.CanCancel && cancelSaveOnFail) { e.CancelOperation(new EventMessage("PreflightFailed", content.Id.ToString())); } }
/// <param name="properties">The properties retrieved from the external service.</param> internal AddressBookEntry(property[] properties) { if (properties == null) { throw new InvalidRicohAddressBookEntryException(null); } _properties = new List <property>(properties); try { // Validate minimum parameters are available / valid var id = Convert.ToUInt32(_properties.GetValue("id")); var entryType = _properties.GetValue("entryType").FromExternalServiceValue(); var name = _properties.GetValue("name"); if ((id <= 0) || (entryType == RicohEntryType.None) || (String.IsNullOrEmpty(name))) { throw new InvalidRicohAddressBookEntryException(properties); } } catch (OverflowException exception) { throw new InvalidRicohAddressBookEntryException(properties, exception); } catch (FormatException exception) { throw new InvalidRicohAddressBookEntryException(properties, exception); } }
public void RefreshTotalExp() { List <int> expDetails = Module_Equip.GetReallyExpDetail(data.GetCurrentTotalExp(), m_swallowExp, m_maxLimitIntentifyInfo); int totalExp = expDetails.GetValue(0); m_swallowExp = expDetails.GetValue(1); m_swallowText.text = m_swallowExp.ToString(); m_previewIntentifyInfo = moduleEquip.GetLimitIntenLevelByExp(equipType, data.GetIntentyLevel(), totalExp, data.HasEvolved()); RefreshCoinCost(totalExp); }
public JsonResult List(Guid?categoryId, List <Guid> categoryIds, string keywords, int?skip, int?take, string sortField, string orderBy) { var xtake = 10; var xskip = 0; long total = 0; if (skip != null) { xskip = skip.Value; } if (take != null) { xtake = take.Value; } if (string.IsNullOrEmpty(sortField)) { sortField = nameof(FeNews.CreatedDate); } if (string.IsNullOrEmpty(orderBy)) { orderBy = "desc"; } List <FeProduct> rows = new List <FeProduct>(); List <ContentLanguage> contentLanguages = null; categoryIds = categoryIds ?? new List <Guid>(); if (categoryId != null && categoryId.Value != Guid.Empty) { categoryIds.Add(categoryId.Value); } var producs = ProductSearchServices.Search(keywords, LanguageId, categoryIds, null, xskip, xtake, out contentLanguages, out total); foreach (var p in producs) { var i = new FeProduct(); i.CreatedDate = p.CreatedDate; i.Id = p.Id; i.Price = p.Price; i.ProductCode = p.ProductCode; i.Published = p.Published; i.AllowComment = p.AllowComment; i.Title = contentLanguages.GetValue(i.Id, "Title"); i.UrlImage = contentLanguages.GetValue(i.Id, "UrlImage"); i.SeoUrlFriendly = contentLanguages.GetValue(i.Id, "SeoUrlFriendly"); rows.Add(i); } return(Json(new { total, rows, success = true }, JsonRequestBehavior.AllowGet)); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ContentService_Saving(IContentService sender, SaveEventArgs <IContent> e) { List <SettingsModel> settings = _settingsService.Get().Settings; // only check if current user group is opted in to testing on save var groupSetting = settings.FirstOrDefault(x => string.Equals(x.Label, KnownSettings.UserGroupOptIn, StringComparison.InvariantCultureIgnoreCase)); if (groupSetting != null && groupSetting.Value.HasValue()) { var currentUserGroups = Umbraco.Web.Composing.Current.UmbracoContext.Security.CurrentUser?.Groups?.Select(x => x.Name) ?? new List <string>(); if (currentUserGroups.Any()) { bool testOnSave = groupSetting.Value.Split(',').Intersect(currentUserGroups).Any(); if (!testOnSave) { return; } } } if (!settings.GetValue <bool>(KnownSettings.BindSaveHandler)) { return; } var cancelSaveOnFail = settings.GetValue <bool>(KnownSettings.CancelSaveOnFail); IContent content = e.SavedEntities.First(); bool failed = _contentChecker.CheckContent(content, true); // at least one property on the current document fails the preflight check if (!failed) { return; } // these values are retrieved in the notifications handler, and passed down to the client HttpContext.Current.Items["PreflightFailed"] = true; HttpContext.Current.Items["PreflightCancelSaveOnFail"] = cancelSaveOnFail; HttpContext.Current.Items["PreflightNodeId"] = content.Id; if (e.CanCancel && cancelSaveOnFail) { e.CancelOperation(new EventMessage("PreflightFailed", content.Id.ToString())); } }
private void RefreshDetail() { RefreshSwallowDisplay(); List <int> expDetails = Module_Equip.GetReallyExpDetail(data.GetCurrentTotalExp(), swallowExp, m_limitIntentifyInfo); totalExp = expDetails.GetValue(0); swallowExp = expDetails.GetValue(1); Util.SetText(m_swallowExpText, Util.Format(ConfigText.GetDefalutString(TextForMatType.EquipIntentyUI, 15), swallowExp)); m_previewIntentifyInfo = moduleEquip.GetLimitIntenLevelByExp(equipType, data.GetIntentyLevel(), totalExp, data.HasEvolved()); int level = data.GetIntentyLevel(); int nextLevel = m_previewIntentifyInfo == null ? level : m_previewIntentifyInfo.level; m_levelPreview.RefreshDetail(level, nextLevel, false); RefreshBar(); RefreshCoinCost(totalExp); }
public static void Update(UpdateNavsParam p_updateParam) { Utils.Logger.Info($"UpdateNavsService.Update()"); DateTime etNow = Utils.ConvertTimeFromUtcToEt(DateTime.UtcNow); if (etNow.IsWeekend()) { return; } Dictionary <GatewayId, uint> GatewayId2SubTableId = new Dictionary <GatewayId, uint>() { { GatewayId.GyantalMain, 1 }, { GatewayId.CharmatMain, 2 }, { GatewayId.DeBlanzacMain, 3 } }; foreach (var gw2SubTableId in GatewayId2SubTableId) { GatewayId gatewayId = gw2SubTableId.Key; List <BrAccSum>?accSums = BrokersWatcher.gWatcher.GetAccountSums(gatewayId); if (accSums == null) { continue; } var navRounded = accSums.GetValue(AccountSummaryTags.NetLiquidation); UpdateAssetInDb(p_updateParam, new AssetId32Bits(AssetType.BrokerNAV, gw2SubTableId.Value), navRounded); } }
public void AddWithKeepingOrderTest() { list.AddWithKeepingOrder(5); list.AddWithKeepingOrder(3); var firstElement = list.GetValue(0); var secondElement = list.GetValue(1); Assert.IsTrue(firstElement <= secondElement); }
public void apiheader___returns_empty_string_on_getvalue_on_empty_headers() { List <ApiHeader> headers = new List <ApiHeader>(); var value = headers.GetValue("X-Test"); value.Should().BeEmpty(); }
public void GetValueTest() { var list = new List(); list.AddValue(34, 0); list.AddValue(143, 0); Assert.AreEqual(34, list.GetValue(1)); }
public void SetValueTest() { var list = new List(); list.AddValue(2345, 0); list.SetValue(1, 0); Assert.AreEqual(1, list.GetValue(0)); }
public JsonResult List(Guid categoryId, string keywords, int? skip, int? take, string sortField, string orderBy) { var xtake = 10; var xskip = 0; long total = 0; if (skip != null) { xskip = skip.Value; } if (take != null) { xtake = take.Value; } if (string.IsNullOrEmpty(sortField)) { sortField = nameof(FeNews.CreatedDate); } if (string.IsNullOrEmpty(orderBy)) { orderBy = "desc"; } List<FeNews> rows = new List<FeNews>(); List<ContentLanguage> contentLanguages = null; var tempNews = NewsSearchServices.Search(keywords, LanguageId, new List<Guid>() { categoryId }, null, xskip, xtake, out contentLanguages, out total); foreach (var n in tempNews) { var i = new FeNews(); i.CreatedDate = n.CreatedDate; i.Id = n.Id; i.Published = n.Published; i.AllowComment = n.AllowComment; i.Title = contentLanguages.GetValue(i.Id, "Title"); i.UrlImage = contentLanguages.GetValue(i.Id, "UrlImage"); i.SeoUrlFriendly = contentLanguages.GetValue(i.Id, "SeoUrlFriendly"); rows.Add(i); } return Json(new { total, rows, success = true }, JsonRequestBehavior.AllowGet); }
private void UpdateBrAccPoss(GatewayId p_gatewayId) { List <BrAccSum>?accSums = BrokersWatcher.gWatcher.GetAccountSums(p_gatewayId); if (accSums == null) { return; } List <BrAccPos>?accPoss = BrokersWatcher.gWatcher.GetAccountPoss(p_gatewayId); if (accPoss == null) { return; } MemDb.gMemDb.UpdateBrAccPosAssetIds(accPoss); BrAccount?brAccount = null; foreach (var account in MemDb.gMemDb.BrAccounts) { if (account.GatewayId == p_gatewayId) { brAccount = account; break; } } if (brAccount == null) { brAccount = new BrAccount() { GatewayId = p_gatewayId }; MemDb.gMemDb.BrAccounts.Add(brAccount); } brAccount.NetLiquidation = accSums.GetValue(AccountSummaryTags.NetLiquidation); brAccount.GrossPositionValue = accSums.GetValue(AccountSummaryTags.GrossPositionValue); brAccount.TotalCashValue = accSums.GetValue(AccountSummaryTags.TotalCashValue); brAccount.InitMarginReq = accSums.GetValue(AccountSummaryTags.InitMarginReq); brAccount.MaintMarginReq = accSums.GetValue(AccountSummaryTags.MaintMarginReq); brAccount.AccPoss = accPoss; brAccount.LastUpdate = DateTime.UtcNow; }
public void AddElementTest() { var ls = new List <int>(); ls.Add(4); const int expected = 4; var actual = ls.GetValue(0); Assert.Equal(expected, actual); }
public void GetValue_Test() { //Arrange List newList = new List(15); // Act string result = newList.GetValue(); // Assert Assert.AreEqual(result, "fifteen"); }
public void apiheader___returns_empty_string_on_getvalue_on_headers_not_having_header() { List <ApiHeader> headers = new List <ApiHeader> { new ApiHeader("X-Test", "value") }; var value = headers.GetValue("X-Test-NotMatched"); value.Should().BeEmpty(); }
public void apiheader___returns_empty_string_on_getvalue_on_headers_matching_header() { List <ApiHeader> headers = new List <ApiHeader> { new ApiHeader("X-Test", "value-test") }; var value = headers.GetValue("X-Test"); value.Should().Be("value-test"); }
public void Check(int id, string val, List <SettingsModel> settings) { var apiKey = settings.GetValue <string>(KnownSettings.GoogleApiKey); var checkSafeBrowsing = settings.GetValue <bool>(KnownSettings.EnsureSafeLinks); // check safebrowsing first to avoid double processing of links List <BrokenLinkModel> safeBrowsingResult = checkSafeBrowsing && apiKey.HasValue() ? _safeBrowsingService.Check(val, apiKey) : new List <BrokenLinkModel>(); List <BrokenLinkModel> brokenLinksResult = _linksService.Check(val, safeBrowsingResult); // then set Failed Failed = brokenLinksResult.Any() || safeBrowsingResult.Any(); // and set Result Result = new Dictionary <string, List <BrokenLinkModel> > { { "safeBrowsing", safeBrowsingResult }, { "brokenLinks", brokenLinksResult } }; // finally, tally failed tests FailedCount = safeBrowsingResult.Any() ? 1 : 0; FailedCount += brokenLinksResult.Any() ? 1 : 0; }
public static void SetValue(this List <UmbracoProperty> obj, string alias, string value) { if (obj != null) { var prop = obj.GetValue(alias); if (prop != null) { obj.Remove(prop); } obj.Add(new UmbracoProperty { Alias = alias, Value = value }); } }
public void AddTest() { for (int i = 1; i < 10; i *= 2) { list.Add(i); } Assert.AreEqual(1, list.GetValue(0)); Assert.AreEqual(2, list.GetValue(1)); Assert.AreEqual(8, list.GetValue(3)); }
public Value ToNumber( List Arguments ) { Value value = Arguments.GetValue( 0 ); if ( value is Number ) { return value as Number; } if ( value is String ) { return new Number( double.Parse( ( value as String ).Val ) ); } if ( value is Boolean ) { return new Number( ( value as Boolean ).Val ? 1 : 0 ); } return NoValue.Value; }
public virtual void SignIn(User user, bool isPersistant = false) { Tracing.Information(String.Format("[ClaimsBasedAuthenticationService.Signin] called: {0}", user.Username)); if (String.IsNullOrWhiteSpace(user.Username)) throw new ArgumentException("username"); // gather claims var claims = new List<Claim>(); foreach (UserClaim uc in user.Claims) claims.Add(new Claim(uc.Type, uc.Value)); if (!String.IsNullOrWhiteSpace(user.Email)) { claims.Insert(0, new Claim(ClaimTypes.Email, user.Email)); } claims.Insert(0, new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Password)); claims.Insert(0, new Claim(ClaimTypes.AuthenticationInstant, DateTime.UtcNow.ToString("s"))); claims.Insert(0, new Claim(ClaimTypes.Name, user.Username)); claims.Insert(0, new Claim(ClaimTypes.NameIdentifier, user.Username)); // create principal/identity var id = new ClaimsIdentity(claims, "Forms"); var cp = new ClaimsPrincipal(id); // claims transform cp = FederatedAuthentication.FederationConfiguration.IdentityConfiguration.ClaimsAuthenticationManager .Authenticate(String.Empty, cp); // issue cookie var sam = FederatedAuthentication.SessionAuthenticationModule; if (sam == null) throw new Exception("SessionAuthenticationModule is not configured and it needs to be."); var token = new SessionSecurityToken(cp, isPersistant ? FormsAuthentication.Timeout : TimeSpan.FromMinutes(SessionHelpers.GetSessionTimeoutInMinutes)) { IsPersistent = isPersistant }; sam.WriteSessionTokenToCookie(token); Tracing.Verbose(String.Format("[ClaimsBasedAuthenticationService.Signin] cookie issued: {0}", claims.GetValue(ClaimTypes.NameIdentifier))); }
public Value ToNumber(List Arguments) { Value value = Arguments.GetValue(0); if (value is Number) { return(value as Number); } if (value is String) { return(new Number(double.Parse((value as String).Val))); } if (value is Boolean) { return(new Number((value as Boolean).Val ? 1 : 0)); } return(NoValue.Value); }
/// <summary> /// perform autoreplace before readability check /// only do this in save handler as there's no point in updating if it's not being saved (potentially) /// </summary> /// <param name="id"></param> /// <param name="val"></param> /// <param name="settings"></param> public void Check(int id, string val, List <SettingsModel> settings) { Dictionary <string, string> autoreplace = settings.GetValue <string>(KnownSettings.AutoreplaceTerms)?.Split(',') .ToDictionary( s => s.Split('|')[0], s => s.Split('|')[1] ); if (autoreplace == null || !autoreplace.Any()) { return; } foreach (KeyValuePair <string, string> term in autoreplace) { string pattern = $@"\b{term.Key}\b"; Regex.Replace(val, pattern, term.Value, RegexOptions.IgnoreCase); } }
//internal readonly Dictionary<string, Territory> _territories = new Dictionary<string, Territory>( StringComparer.OrdinalIgnoreCase ); private void LoadCodeMappings(string elmName, List <AttributeValue> list) { switch (elmName) { case "territoryCodes": var t = _loader._territories.GetOrCreate(list.GetValue("type")); t.LoadCodes(list); //_loader.Add( new Territory( list ) ); break; case "currencyCodes": _loader.Add(new Currency(list)); break; default: _loader.Warning("Invalid element " + elmName); break; } }
/// <summary> /// Find objects that intersect the given ball with their expansion (pos, radius). /// </summary> /// <param name="pos"></param> /// <param name="radius"></param> /// <returns>list of all objects found intersecting the given ball.</returns> public HashSet <T> FindAll(Vector3 pos, float radius) { var result = new HashSet <T>(); int col = FloatToCellIndex(pos.X, Width, WidthCells); int row = FloatToCellIndex(pos.Y, Height, HeightCells); var cells = (int)Math.Min(int.MaxValue, Math.Ceiling((radius + MaxRadius) / CellWidth)); // Run through all cells in the vincinity of the given position for (int runrow = Math.Max(0, row - cells); runrow < Math.Min(row + cells, HeightCells); runrow++) { for (int runcol = Math.Max(0, col - cells); runcol < Math.Min(col + cells, WidthCells); runcol++) { foreach (var item in (List <ExpandedObject <T> >)_grid.GetValue(runrow, runcol)) { // Check the intersection with every object in this cell if ((item.pos - pos).Length() <= (radius + item.radius)) { result.Add(item.obj); } } } } return(result); }
private void Update(EvaluationContext context) { //var connectedLists = Lists.CollectedInputs.Select(c => c.GetValue(context)).Where(c => c != null).ToList(); //Lists.DirtyFlag.Clear(); var list = List.GetValue(context); if (list == null || list.NumElements == 0) { return; } for (int index = 0; index < list.NumElements; index++) { context.FloatVariables["iterator"] = index; DirtyFlag.InvalidationRefFrame++; foreach (var c in SubTree.CollectedInputs) { //Log.Debug($" {index} {c}", SymbolChildId); c.Invalidate(); c.GetValue(context); } } //Resul }
/// <summary> /// Returns the value of the member referenced by key. /// </summary> /// <typeparam name="T">The type of object to be returned.</typeparam> /// <param name="key">The key for the value to be returned.</param> /// <returns>Returns a matching parameter of <typeparamref name="T"/> if one exists in the Collection.</returns> public T GetValue <T>(string key) => _entries.GetValue <T>(key);
public List<SHSubjectSemesterScoreInfo> SortSHSubjectSemesterScore(List<SHSubjectSemesterScoreInfo> firstSemesterSubjectScoreInfo, List<SHSubjectSemesterScoreInfo> secondSemesterSubjectScoreInfo) { SHSubjectSemesterScoreInfo[] byteSecondSemesterSubjectScoreInfo = new List<SHSubjectSemesterScoreInfo>().ToArray(); if (secondSemesterSubjectScoreInfo != null && secondSemesterSubjectScoreInfo.Count>0) byteSecondSemesterSubjectScoreInfo = secondSemesterSubjectScoreInfo.ToArray(); List<SHSubjectSemesterScoreInfo> reSortedSecondSemesterSubjectScoreInfo = new List<SHSubjectSemesterScoreInfo>(); if ((firstSemesterSubjectScoreInfo == null || firstSemesterSubjectScoreInfo.Count == 0) && (secondSemesterSubjectScoreInfo == null || secondSemesterSubjectScoreInfo.Count == 0)) return new List<SHSubjectSemesterScoreInfo>(); if (secondSemesterSubjectScoreInfo == null || secondSemesterSubjectScoreInfo.Count == 0) return firstSemesterSubjectScoreInfo; if (firstSemesterSubjectScoreInfo == null || firstSemesterSubjectScoreInfo.Count == 0) return secondSemesterSubjectScoreInfo; int j = 0; SHSubjectSemesterScoreInfo s2 = new SHSubjectSemesterScoreInfo(); foreach (SHSubjectSemesterScoreInfo s1 in firstSemesterSubjectScoreInfo) { bool found = false; for (int i = 0; i < (byteSecondSemesterSubjectScoreInfo.Length - j); i++) { s2 = (byteSecondSemesterSubjectScoreInfo.GetValue(i) as SHSubjectSemesterScoreInfo); if ((s1.SubjectName.Trim() == s2.SubjectName.Trim()) && (s1.GradeYear.HasValue && s2.GradeYear.HasValue && s1.GradeYear == s2.GradeYear)) { found = true; reSortedSecondSemesterSubjectScoreInfo.Add(s2); byteSecondSemesterSubjectScoreInfo.SetValue(byteSecondSemesterSubjectScoreInfo.GetValue((byteSecondSemesterSubjectScoreInfo.Length - 1 - j)), i); byteSecondSemesterSubjectScoreInfo.SetValue(s2, (byteSecondSemesterSubjectScoreInfo.Length - 1 - j)); j++; } } if (!found) { SHSubjectSemesterScoreInfo _SHSubjectSemesterScoreInfo = new SHSubjectSemesterScoreInfo(); _SHSubjectSemesterScoreInfo.SubjectName = string.Empty; _SHSubjectSemesterScoreInfo.StudentID = s2.StudentID; _SHSubjectSemesterScoreInfo.Semester = s2.Semester; _SHSubjectSemesterScoreInfo.Score = null; _SHSubjectSemesterScoreInfo.SchoolYearAdjustScore = null; _SHSubjectSemesterScoreInfo.SchoolYear = s2.SchoolYear; _SHSubjectSemesterScoreInfo.RequiredBy = string.Empty; _SHSubjectSemesterScoreInfo.Required = null; _SHSubjectSemesterScoreInfo.ReExamScore = null; _SHSubjectSemesterScoreInfo.ReCourseScore = null; _SHSubjectSemesterScoreInfo.Pass = null; _SHSubjectSemesterScoreInfo.NotIncludedInCredit = null; _SHSubjectSemesterScoreInfo.NotIncludedInCalc = null; _SHSubjectSemesterScoreInfo.ManualScore = null; _SHSubjectSemesterScoreInfo.Level = null; _SHSubjectSemesterScoreInfo.Entry = string.Empty; _SHSubjectSemesterScoreInfo.Credit = null; _SHSubjectSemesterScoreInfo.CoreSubject = false; _SHSubjectSemesterScoreInfo.Comment = string.Empty; _SHSubjectSemesterScoreInfo.GradeYear = null; _SHSubjectSemesterScoreInfo.ProSubject = false; reSortedSecondSemesterSubjectScoreInfo.Add(_SHSubjectSemesterScoreInfo); } } for (int i = 0; i < (byteSecondSemesterSubjectScoreInfo.Length - j); i++) { reSortedSecondSemesterSubjectScoreInfo.Add(byteSecondSemesterSubjectScoreInfo[i]); } return reSortedSecondSemesterSubjectScoreInfo; }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { SendTcpTraffic( logger, parameters.GetValue<string>(0), parameters.GetValue<int>(1), parameters.GetValue<string>(2), parameters.GetValue<int>(3), parameters.GetValue<int>(4), parameters.GetValue<int>(5)); }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { AllocateObjects(logger, parameters.GetValue<long>(0)); }
public void Execute(IMethodLogger logger, List<SamplerMethodParameter> parameters) { RequestRiverBedHomePageAsync( logger, parameters.GetValue<int>(0)); }