Esempio n. 1
0
        static void Main(string[] args)
        {
            TesteController a = new TesteController();

            a.receber();
            a.listar();
        }
Esempio n. 2
0
        public void GetValorJuros()
        {
            var controller = new TesteController();

            var result     = controller.GetJuros(new CalcTeste(), 210, 12);
            var okResult   = result.Should().BeOfType <OkObjectResult>().Subject;
            var valorJuros = okResult.Value.Should().BeAssignableTo <string>().Subject;

            valorJuros.Should().Be("236,63");
        }
Esempio n. 3
0
        public void GetUrlCode()
        {
            var controller = new TesteController();

            var result   = controller.GetUrlCode(new CalcTeste());
            var okResult = result.Should().BeOfType <OkObjectResult>().Subject;
            var urlCode  = okResult.Value.Should().BeAssignableTo <string>().Subject;

            urlCode.Should().Be("https://github.com/bitols/ApiCalcTeste");
        }