public void GetIDByCredentialsTest() { //GetIDByCredentials int IDAct = uow_CUT.GetIDByCredentials(UserNameToGet, UserSernameToGet); int IDExp = (from s in context.Set <USERS_SQL>() where s.Name == UserNameToGet && s.Sername == UserSernameToGet select s).FirstOrDefault().ID; nUnit.Assert.AreEqual(IDExp, IDAct); }