public void ShouldReturnAllFoos()
        {
            //Arrange
            var context = new TestDataContext(Settings.Default.Connection, new FooMappingConfiguration(),
                                              new ConsoleOutLogger("Test", LogLevel.All, true, true, true, string.Empty));

            var item  = new Foo();
            var item2 = new Foo();

            context.Add(item);
            context.Add(item2);
            context.Commit();
            var expectedCount = context.AsQueryable <Foo>().Count();

            var target = Data.Queries.FindAll <Foo>();

            //Act
            var results = target.Execute(context);

            //Assert
            Assert.AreEqual(results.Count(), expectedCount);
            context.Remove(item);
            context.Remove(item2);
            context.Commit();
        }
        public void Should_Execute_Query_With_Performance_Info()
        {
            //Arrange
            Database.SetInitializer(new DropCreateDatabaseAlways <TestDataContext>());
            var consoleOutLogger = new ConsoleOutLogger("Performance", LogLevel.All, true, true, true, "");
            var context          = new TestDataContext(Settings.Default.Connection, new FooMappingConfiguration(),
                                                       consoleOutLogger);
            List <Foo> nullResult = context.AsQueryable <Foo>().ToList();

            //Act
            IEnumerable <Foo> result = null;

            result = new FindFoo().RunPerformanceTest(context, consoleOutLogger, false);


            //Assert
            Assert.IsNotNull(result);
        }