/// <summary>
        /// Initializes this instance.
        /// </summary>
        public void Initialize()
        {
            SetUp();
            RepositoryFactory.IntitializeWith(new NLocalFactoryResolver(SessionFactory.SessionFactoryInstance));

            _session = RepositoryFactory.StartUnitOfWork();

            BaseRepository = RepositoryFactory.GetRepository<NTestObject>();
            using (var tran = RepositoryFactory.StartTransaction())
            {
                BaseRepository.GetCommand<ICreateCommand<NTestObject>>().Create(new NTestObject
                {
                    ID = 1,
                    Text = "testFirst",
                    Type = TypeEnum.SomeFirstType
                });
                BaseRepository.GetCommand<ICreateCommand<NTestObject>>().Create(new NTestObject
                {
                    ID = 2,
                    Text = "testSecond",
                    Type = TypeEnum.SomeOtherType
                });
                BaseRepository.GetCommand<ICreateCommand<NTestObject>>().Create(new NTestObject
                {
                    ID = 3,
                    Text = "testThird",
                    Type = TypeEnum.SomeOtherType
                });
                BaseRepository.GetCommand<ICreateCommand<NTestObject>>().Create(new NTestObject
                {
                    ID = 4,
                    Text = "Four",
                    Type = TypeEnum.SomeOtherType
                });
                tran.Commit();
            }
        }