示例#1
0
        public void GetGatewayFromRibRowTest_ReturnSingle()
        {
            string[] ribRowGateways =
            {
                "123",
                "456"
            };

            foreach (string rowGateway in ribRowGateways)
            {
                Assert.AreEqual(rowGateway, Choosers.GetGatewayFromRibRow(rowGateway));
            }
        }
示例#2
0
        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");
            }
        }
示例#3
0
 public ChooserButtonViewModel GetChooser(FilterCategory category)
 {
     return(Choosers.Where(c => c.CategoryName == category.Id).FirstOrDefault());
 }