Beispiel #1
0
        public void SetCurrentUserTest()
        {
            int ExpId = SetUserID;

            uow_CUT.SetCurrentUser(SetUserID);

            var a = uow_CUT.GetType()
                    .GetField(@"currentUserId", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)
                    .GetValue(uow_CUT);

            if (a is int)
            {
                GetUSerID = (int)a;
            }

            Assert.AreEqual(ExpId, GetUSerID);
        }