Beispiel #1
0
		public void initializationTest()
		{
			FormManager manager = new FormManager(new FormFactory());
			Context temp = new Context(SzpifDatabase.DataBase, manager);
			Assert.IsNotNull(temp);
			Assert.IsNull(temp.UserLogin);
			Assert.IsNull(temp.UserPassword);
			Assert.IsNull(temp.UserRoles);
			
			/*ICollection<string> permissions = new List<string>();
			initializeContext("Moose","Master",permissions,temp);
			Assert.IsNotNull(temp);
			Assert.AreEqual(temp.UserLogin, "Moose");
			Assert.AreEqual(temp.UserPassword, "Master");
			Assert.AreSame(temp.UserRoles, permissions);
			
			ICollection<string> permissions2 = new List<string>();
			initializeContext("Lukasz", "luk123", permissions2,temp);
			Assert.AreEqual(temp.UserLogin, "Lukasz");
			Assert.AreEqual(temp.UserPassword, "luk123");
			Assert.AreSame(temp.UserRoles, permissions2);*/
		}
Beispiel #2
0
        static Program()
        {
			Context = new Context(SzpifDatabase.DataBase, new FormManager(new FormFactory()));
        }