Example #1
0
 public void setup()
 {
     reg    = AccountRegistry.Instance;
     broker = new AuthenticationBroker();
     // new voter
     reg.AddUser(new Voter("test", "password", true, "", "", new DateTime()));
     // new admin
     reg.AddUser(new Admin("admin", "password"));
 }
        private static void GetUrlWithQueryStringParameter_Setup(string startUrl, string param, string paramValue, string expectedResult)
        {
            Uri result = new AuthenticationBroker().GetUrlWithQueryStringParameter(new Uri(startUrl), param, paramValue);

            Assert.AreEqual(expectedResult, result.AbsoluteUri);
        }
        private static void GetUrlWithQueryStringParameter_Setup(string startUrl, string param, string paramValue, string expectedResult)
        {
            Uri result = new AuthenticationBroker().GetUrlWithQueryStringParameter(new Uri(startUrl), param, paramValue);

            Assert.AreEqual(expectedResult, result.AbsoluteUri);
        }