public void ExecuteFindOne()
        {
            var command          = SelectAllCommand();
            var commandProcessor = new FakeCommandProcessor(command);
            var result           = commandProcessor.FindOne <Companies>();

            Assert.AreEqual("DynamicSoft", result.CompanyName);
        }
Beispiel #2
0
        public void ExecuteFindOneAsTyped()
        {
            dynamic   x                = new DynamicCommandExpression();
            var       command          = SelectAllCommand();
            var       commandProcessor = new FakeCommandProcessor(command);
            Companies result           = commandProcessor.FindOne(x.Companies);

            Assert.AreEqual("DynamicSoft", result.CompanyName);
        }
        public void ExecuteFindAll()
        {
            var command          = SelectAllCommand();
            var commandProcessor = new FakeCommandProcessor(command);
            var result           = commandProcessor.FindAll <Companies>();

            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("DynamicSoft", result.First().CompanyName);
            Assert.AreEqual("StaticSoft", result.Last().CompanyName);
        }
Beispiel #4
0
        public void ExecuteFindAll()
        {
            dynamic x                    = new DynamicCommandExpression();
            var     command              = SelectAllCommand();
            var     commandProcessor     = new FakeCommandProcessor(command);
            IEnumerable <dynamic> result = commandProcessor.FindAll(x.Companies);

            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("DynamicSoft", result.First().CompanyName);
            Assert.AreEqual("StaticSoft", result.Last().CompanyName);
        }