public void GetSqlServerSessionFactoryMethod_NoInputParams_ReturnsISessionFactory()
        {
            var sut = new SessionFactoryBuilder();
            var result = sut.CreateSqlServerSessionFactory();

            result.ShouldBeInstanceOf<ISessionFactory>();
        }
        public void GetSqlServerSessionFactoryMethod_NoInputParams_ShouldContainConnectionString()
        {
            var sut = new SessionFactoryBuilder();
            var result = sut.CreateSqlServerSessionFactory();
            var session = result.OpenSession();
            CurrentSessionContext.Bind(session);

            session.Connection.ConnectionString.Contains("sql2k803").ShouldBeTrue();
        }
        public void GetSqlServerSessionFactoryMethod_NoInputParams_ShouldContainEntityMappings()
        {
            try
            {
                ICollection<string> expectedContainer = new List<string>
                                            {
                                                "Gaddzeit.VetAdmin.Domain.Entities.Owner",
                                                "Gaddzeit.VetAdmin.Domain.Entities.Pet"
                                            };

                var sut = new SessionFactoryBuilder();
                var result = sut.CreateSqlServerSessionFactory();

                result.GetAllClassMetadata().Keys.ShouldEqual(expectedContainer);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }