public void TestMethod_signIn() { Setup(); db.registerNewUserDB(admin); store.Roles = new TreeNode <Role>(new Role(store, admin)); store.RolesDictionary = new Dictionary <int, TreeNode <Role> >(); TradingSystem sysTest = new TradingSystem(null, null); sysTest.Stores.Add(store.Id, store); db.signIn(admin.Id, sysTest); Assert.AreEqual(true, sysTest.Users.ContainsKey(admin.Id)); }