public void EngineApiActionTest()
        {
            //Now we can run a basic situation with no Umbraco boilerplate!
            var controller = new BasicUmbracoApiController();
            var res        = controller.BasicApiCall();

            Assert.IsNotNull(res);
        }
        public void BasicApiCallTest()
        {
            //Setup Application Contact with mocks. Sets ApplicaitonContext.Current
            var appCtx = ApplicationContext.EnsureContext(
                new DatabaseContext(Mock.Of <IDatabaseFactory>(), Mock.Of <ILogger>(), new SqlSyntaxProviders(new[] { Mock.Of <ISqlSyntaxProvider>() })),
                new ServiceContext(),
                CacheHelper.CreateDisabledCacheHelper(),
                new ProfilingLogger(
                    Mock.Of <ILogger>(),
                    Mock.Of <IProfiler>()), true);

            //Setup UmbracoContext with mocks. Sets UmbracoContext.Current
            UmbracoContext.EnsureContext(
                Mock.Of <HttpContextBase>(),
                appCtx,
                new Mock <WebSecurity>(null, null).Object,
                Mock.Of <IUmbracoSettingsSection>(),
                Enumerable.Empty <IUrlProvider>(), true);

            var    controller = new BasicUmbracoApiController();
            string res        = controller.BasicApiCall();

            Assert.AreEqual(res, string.Empty);
        }