public void GetGatewayFromRibRowTest_ReturnSingle() { string[] ribRowGateways = { "123", "456" }; foreach (string rowGateway in ribRowGateways) { Assert.AreEqual(rowGateway, Choosers.GetGatewayFromRibRow(rowGateway)); } }
public void GetGatewayFromRibRowTest_ReturnRandom() { string[] ribRowGateways = { "456,123", "123,456" }; foreach (string rowGateway in ribRowGateways) { var gateway = Choosers.GetGatewayFromRibRow(rowGateway); Assert.IsTrue(gateway == "123" || gateway == "456"); } }
public ChooserButtonViewModel GetChooser(FilterCategory category) { return(Choosers.Where(c => c.CategoryName == category.Id).FirstOrDefault()); }