Ejemplo n.º 1
0
 public void LogovanjeZahteva_NullArguments_ThrowsException(string username, string lozinka, string sistem)
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         FederatedIdentityInterface fi = new FederatedIdentityInterface();
         fi.LogovanjeZahteva(username, lozinka, sistem);
     }
                                           );
 }
Ejemplo n.º 2
0
        public void LogovanjeZahteva_LosOdabirSistema_ThrowsException(string username, string lozinka, string sistem)
        {
            Assert.Throws <Exception>(() =>

            {
                FederatedIdentityInterface fii = new FederatedIdentityInterface();
                fii.LogovanjeZahteva(username, lozinka, sistem);
            }
                                      );
        }
Ejemplo n.º 3
0
        public UserInterface()
        {
            ICQRSInterfaceJSON icqrsjson = new CQRSInterfaceJSON();
            ICQRSInterfaceDB   icqrsdb   = new CQRSInterfaceDB();

            IAuthenticationInterfacesJSON iajson = new AuthenticationInterfaceJSON(icqrsjson);
            IAuthenticationInterfaceDB    iadb   = new AuthenticationInterfaceDB(icqrsdb);

            IFederatedIdentityInterface ifii = new FederatedIdentityInterface(iajson, iadb);

            ifederated = ifii;
        }