Example #1
0
        public void GetDeveRetornarTodasOsPlanos()
        {
            var service   = new ServicePlano();
            var resultado = service.ObterPlanos();

            Assert.IsNotNull(resultado);
        }
Example #2
0
        public void PutDeveFalharSeIdPlanoDiferente()
        {
            var valor     = int.MaxValue;
            var service   = new ServicePlano();
            var resultado = service.AtualizarPlano(valor);

            Assert.IsInstanceOfType(resultado, typeof(BadRequestResult));
        }
Example #3
0
        public void DeleteDeveFalharSeIdPlanoDiferente()
        {
            var valor     = int.MaxValue;
            var service   = new ServicePlano();
            var resultado = service.RemoverPlano(valor);

            Assert.IsInstanceOfType(resultado, typeof(NotFoundResult));
        }