McInnes Family Blog

August 15, 2008

TDD, DI and SOC with ASP.NET MVC

Filed under: .NET Programming — admin @ 3:30 pm

 

Onion Architecture

Put objects and collections into the core
Use Dependency Resolution

Use encapsulation (information hiding)

DI - pass objects into the constructor (i.e. the Class depends on these types)
Use StructureMap container to do the IOC.
DependencyRegister.cs does the StructureMap mappings in code.

August 6, 2008

Discipline of Marriage

Filed under: Wednesday Morning — admin @ 4:59 am

Sacrificial Love 

What do we need to be dying to, casting off, so that we can love our wives sacrificially? Lust, unspoken expectations, finances, laziness.

Marriage is a call to die. Die to our rights, our time and our perceived pleasures. (p. 36)

How did Jesus treat women? Women at the well, Mary and Martha. He was able to see beyond their outward appearance and speak to the heart. Jesus was counter cultural, especially in the middle eastern culture where women were a lower class. Jesus showed unconditional love to them.

Men, we are divinely called to die for our brides, to take on her sufferings as our own, and to make intercession for her. (p. 36)

This is a hard concept to live out daily. Dieing to self, suffering for another and praying for your spouse is a willful, daily choice along with the choices we make every day.

Sanctifying Love

Marriage exposes your weaknesses and reveals issues and flaws in your character. What baggage are you carrying, what are the things that you need to cast off from your life?

The call is to take seriously the words of Jesus, dying to self, loving God and loving others as you love your self.
 

I am not my own, I was bought with a price and I belong to him.

Names: Justin, James, Dub, Greg

July 25, 2008

Protected: AAMSE Keynote: The Changing Marketplace in Healthcare - Brian Klepper

Filed under: Conferences — admin @ 7:29 am

This post is password protected. To view it please enter your password below:


July 24, 2008

Protected: AAMSE Keynote: Federal Health Politics: What it Means for You and Your Members

Filed under: Conferences — admin @ 8:08 am

This post is password protected. To view it please enter your password below:


July 10, 2008

Subversion Recap

Filed under: Technology and Software — admin @ 5:10 am

Install latest version of SVN client and TortoiseSVN

Create directory at c:\svnrepos and using Tortoise, create repository

Using Tortoise, choose Repo Browser and create a new directory in the repository, foo

Using Explorer, choose the source directory and right-click, choose TortoiseSVN and import into the foo directory in the repository \

Create new directory c:\bar and right-click, choose TortoiseSVN and SVN checkout

July 9, 2008

Codus and nHibernate - First Project using Northwind

Filed under: .NET Programming — admin @ 7:39 am

After clicking the Generate button, receive the following message:

After compiling, you must copy the nHibernate *.hbm.xml mapping files, located in the Mappings directory, to your build directory. The same location as the executables.

 

image

 

(As an aside, found SharpDevelop - http://www.icsharpcode.net/Opensource/SD/)

My first nHibernate Project:

I used Codus, copied the src files into a newly created project.

After adding all the references (NHibernate, nunit.framework, Iesi.Collections, Adapdev, Adapdev.data) I needed to the project and building, the project throws an exception:

persistent class Northwind.ORM.CategoriesEntity, DAO not found
   at NHibernate.Cfg.Configuration.AddXmlFile(String xmlFile)
   at NHibernate.Cfg.Configuration.DoConfigure(XmlDocument doc)
   at NHibernate.Cfg.Configuration.Configure(XmlTextReader reader)
   at NHibernate.Cfg.Configuration.Configure(String resource)
   at NHibernate.Cfg.Configuration.Configure()
   at Northwind.ORM.Configurator.GetSessionFactory() in c:\temp\nhibernate\northwind\NorthwindORM\DAO\Configurator.cs:line 26
   at Northwind.ORM.CategoriesDAO..ctor() in c:\temp\nhibernate\northwind\NorthwindORM\DAO\CategoriesDAO.cs:line 62

It could not find the DAO assembly which is referenced in the mapping file here.:
<class name=”Northwind.ORM.CategoriesEntity, DAO” table=”Categories”>

My assembly name was NorthWindORM so I changed it to:
<class name=”Northwind.ORM.CategoriesEntity, NorthWindORM” table=”Categories”>

I used NUnit GUI and Reflector to troubleshoot and debug as well as change my Class Library into a Console Application, create a Main method and write the following code to be able to set breakpoints:

Northwind.ORM.SuppliersDAO  foo = new SuppliersDAO();

After fixing the configuration mapping files, I can now run the Unit Tests project which I split out into a separate project. The NHibernate documentation stated the following:
You have to tell NHibernate where to load the class from. In this case we are loading the class NHibernate.Examples.QuickStart.User in the assembly NHibernate.Examples. NHibernate follows the same rules of loading a type as the .NET Framework - so if you have any confusion about how to specify the type see the .NET Framework SDK.

July 8, 2008

Protected: Reigning in Life - Bill Johnson

Filed under: Christianity — admin @ 8:10 pm

This post is password protected. To view it please enter your password below:


July 7, 2008

Protected: The Loyalty of Bethel Notes

Filed under: Christianity — admin @ 7:07 am

This post is password protected. To view it please enter your password below:


The pursuit of God

Filed under: Christianity — admin @ 6:27 am

“You can only be together what you are privately” - David Crabtree.
In other words, we should all take time to pursue God for ourselves and get passionate about Him so that His presence can manifest in power and abundance when we are together!

July 6, 2008

Protected: Psalm 51

Filed under: Christianity — admin @ 8:03 am

This post is password protected. To view it please enter your password below:


Older Posts »

Powered by WordPress