Example #1
0
        public void NaoConsigoGerarSemToken()
        {
            var adsController = new AdsController();
            var retorno = adsController.GetAdsPreview(12312312, new FacebookAdCreative(), new FacebookTargetingSpecs(), null);

            Assert.IsInstanceOfType(retorno,typeof(ErrorResponse));
        }
Example #2
0
        public void ConsigoGerarUmPreview()
        {
            var adsController = new AdsController();
            var retorno = adsController.GetAdsPreview(12312312, new FacebookAdCreative(), new FacebookTargetingSpecs(), "asdasd");

            Assert.IsInstanceOfType(retorno,typeof(SuccessPreviewResponse));
            Assert.IsNotNull(((SuccessPreviewResponse)retorno).data.First().body);
        }