public void GetEnvironmentConfiguration()
        {
            _fakeDbConfig = Isolate.Fake.Instance<IDatabaseConfig>();
            var fakeConn = Isolate.Fake.Instance<IDbConnection>();
            Isolate.WhenCalled(() => _fakeDbConfig.GetConnection()).WillReturn(fakeConn);

            var fakeConfig = Isolate.Fake.Instance<Configuration>();
            Isolate.WhenCalled(() => fakeConfig.BuildSessionFactory()).ReturnRecursiveFake();
            _envConfig = new EnvironmentConfiguration(TestEnv, fakeConfig, _fakeDbConfig);

            Isolate.WhenCalled(() => _envConfig.BuildSchema(fakeConn)).WithExactArguments().IgnoreCall();
        }
        private static EnvironmentConfiguration GetEnvironmentConfiguration()
        {
            var fakeDbConfig = Isolate.Fake.Instance<IDatabaseConfig>();
            var fakeConn = Isolate.Fake.Instance<IDbConnection>();
            Isolate.WhenCalled(() => fakeDbConfig.GetConnection()).WillReturn(fakeConn);

            var fakeConfig = Isolate.Fake.Instance<Configuration>();
            Isolate.WhenCalled(() => fakeConfig.BuildSessionFactory()).ReturnRecursiveFake();
            var env = new EnvironmentConfiguration(TestEnv, fakeConfig, fakeDbConfig);

            Isolate.WhenCalled(() => env.BuildSchema(fakeConn)).WithExactArguments().IgnoreCall();
            return env;
        }