﻿using Ninject;
using RealWorldRx.Objects.Services;
using System;
using System.Collections.Generic;
using System.Text;

namespace RealWorldRx.Objects
{
    public class Environment
    {
        private Environment()
        {
        }

        public IApiClient ApiClient { get; private set; }

        public IHockeyAppService HockeyAppService { get; private set; }

        public static Environment Build(IKernel container)
        {
            var environment = new Environment();

            environment.ApiClient = container.Get<IApiClient>();
            environment.HockeyAppService = container.Get<IHockeyAppService>();

            return environment;
        }
    }
}