Ejemplo n.º 1
0
        public void Execute_Args_ParametersAssigned()
        {
            var resolver = new EmbeddedQueryResolver(BuildArgs());
            var cmd      = resolver.Execute();

            Assert.That(cmd.Parameters, Has.Count.EqualTo(1));
        }
Ejemplo n.º 2
0
        public void Execute_Args_CommandTextAssigned()
        {
            var resolver = new EmbeddedQueryResolver(BuildArgs());
            var query    = resolver.Execute();

            Assert.That(query.Statement, Is.EqualTo("select * from myTable;"));
        }
Ejemplo n.º 3
0
        public void Execute_Args_CommandInstantiated()
        {
            var resolver = new EmbeddedQueryResolver(BuildArgs());
            var cmd      = resolver.Execute();

            Assert.That(cmd, Is.Not.Null);
        }
Ejemplo n.º 4
0
        public void Execute_Args_ConnectionStringAssigned()
        {
            var resolver = new EmbeddedQueryResolver(BuildArgs());
            var query    = resolver.Execute();

            Assert.That(query.ConnectionString, Is.Not.Null.And.Not.Empty);
            Assert.That(query.ConnectionString, Is.EqualTo(ConnectionStringReader.GetSqlClient()));
        }