Esempio n. 1
0
        public async Task CalculateMD5Test()
        {
            var expected     = "7FE8C14D5E3D1CFB648F77F05766A013";
            var testPassword = "******";
            var testResult   = await service.CalculateMD5(testPassword);

            Assert.That(expected, Is.EqualTo(testResult));
        }
        public async Task <IActionResult> CalculateMD51(string data)
        {
            var md5Hex = await _bankingService.CalculateMD5(data);

            return(Ok(md5Hex));
        }