public void Root()
        {
            var project = new Mock <IProject>();
            {
                project.Setup(p => p.BaseDataset())
                .Returns(new Mock <IProxyDataset>().Object);
            }

            var facade = new ScriptBackEndProjectFacade(new ProjectFacade(project.Object));
            var root   = facade.Root();

            Assert.IsNotNull(root);
        }
예제 #2
0
        /// <summary>
        /// Returns the root dataset for the current project.
        /// </summary>
        /// <returns>The root dataset.</returns>
        public IDatasetScriptFacade Root()
        {
            var dataset = m_Current.Root();

            return(new ScriptFrontEndDatasetFacade(dataset));
        }
        public void Root()
        {
            var project = new Mock<IProject>();
            {
                project.Setup(p => p.BaseDataset())
                    .Returns(new Mock<IProxyDataset>().Object);
            }

            var facade = new ScriptBackEndProjectFacade(new ProjectFacade(project.Object));
            var root = facade.Root();
            Assert.IsNotNull(root);
        }