Пример #1
0
        public async Task GetEncryptedUsernameByID_returns_null_for_non_existing_id()
        {
            var    service = new UserInfoLoader(context);
            string result  = await service.GetEncryptedUserNameById(3);

            Assert.IsNull(result);
        }
Пример #2
0
        public async Task GetEncryptedUsernameByID_gets_encrypted_username_by_id()
        {
            var    service = new UserInfoLoader(context);
            string result  = await service.GetEncryptedUserNameById(1);

            Assert.AreEqual("SSaaJXIOmGkPgfxmxOoDZQ==", result);
            Assert.IsNotNull(result);
        }