public void Dynamic_Invalid() { dynamic getUser = new DynamicSqlStoredProcedure("uspGetManagerEmployees", Database.AdventureWorks); getUser.ManagerID = 16; getUser.InvalidProperty = new XElement("invalid"); }
public void Dynamic() { dynamic getUser = new DynamicSqlStoredProcedure("uspGetManagerEmployees", Database.AdventureWorks); getUser.ManagerID = 16; var employees = Fluently.Load <List <Employee> >() .With <EmployeeMap>() .From(getUser); Assert.IsNotNull(employees); Assert.AreEqual(12, employees.Count); Assert.AreEqual(0, getUser.RETURN_VALUE); }