public void Test_View_EntityProvided()
        {
            TestRecord record1 = new TestRecord();

            record1.ID   = Guid.NewGuid();
            record1.Text = "Record 1";

            //DataAccess.Data.Saver.Save(record1);

            // Check that the records do exist
            //int count = DataAccess.Data.Indexer.GetEntities<TestRecord>().Length;
            //Assert.AreEqual(1, count, "Invalid number of TestRecord objects found.");

            BaseViewProjection page = new BaseViewProjection("View", typeof(TestRecord), false);


            ViewController controller = ViewController.New(page);


            if (controller == null)
            {
                throw new Exception("Controller is null.");
            }


            controller.View(record1);

            Assert.IsNotNull(controller.DataSource, "The DataSource property on the controller wasn't set.");
        }
        public void Test_View_EntityProvided()
        {
            TestRecord record1 = new TestRecord();
            record1.ID = Guid.NewGuid();
            record1.Text = "Record 1";

            //DataAccess.Data.Saver.Save(record1);

            // Check that the records do exist
            //int count = DataAccess.Data.Indexer.GetEntities<TestRecord>().Length;
            //Assert.AreEqual(1, count, "Invalid number of TestRecord objects found.");

            BaseViewProjection page = new BaseViewProjection("View", typeof(TestRecord), false);

            ViewController controller = ViewController.New(page);

            if (controller == null)
                throw new Exception("Controller is null.");

            controller.View(record1);

            Assert.IsNotNull(controller.DataSource, "The DataSource property on the controller wasn't set.");
        }