Esempio n. 1
0
        public async Task GetDecryptedUsernameByID_returns_null_for_non_existing_id()
        {
            var    service = new UserInfoLoader(context);
            string result  = await service.GetUserNameById(3);

            Assert.IsNull(result);
        }
Esempio n. 2
0
        public async Task GetDecryptedUsernameByID_returns_decrypted_username()
        {
            var    service = new UserInfoLoader(context);
            string result  = await service.GetUserNameById(1);

            Assert.AreEqual("teacher", result);
        }