public void TestInitialize()
        {
            Ioc.Container = new DependencyInjectionContainer();

            _subServiceLocator                = Substitute.For <IServiceLocator>();
            _subHealthWebRequestClient        = Substitute.For <IHealthWebRequestClient>();
            _subLocalObjectStore              = Substitute.For <ILocalObjectStore>();
            _subShellAuthService              = Substitute.For <IShellAuthService>();
            _subMessageHandlerFactory         = Substitute.For <IMessageHandlerFactory>();
            _subClientSessionCredentialClient = Substitute.For <IClientSessionCredentialClient>();
            _healthVaultConfiguration         = new HealthVaultConfiguration
            {
                MasterApplicationId        = s_masterApplicationId,
                DefaultHealthVaultUrl      = new Uri("https://platform2.healthvault.com/platform/"),
                DefaultHealthVaultShellUrl = new Uri("https://account.healthvault.com")
            };

            _subServiceLocator.GetInstance <HealthVaultConfiguration>().Returns(_healthVaultConfiguration);
            _subServiceLocator.GetInstance <IHealthWebRequestClient>().Returns(_subHealthWebRequestClient);
            _subServiceLocator.GetInstance <SdkTelemetryInformation>().Returns(new SdkTelemetryInformation {
                FileVersion = "1.0.0.0"
            });
            _subServiceLocator.GetInstance <ICryptographer>().Returns(new Cryptographer());
            _subServiceLocator.GetInstance <IHealthServiceResponseParser>().Returns(new HealthServiceResponseParser());

            Ioc.Container.RegisterTransient <IPersonClient, PersonClient>();
        }
 public HealthVaultSodaConnection(
     IServiceLocator serviceLocator,
     ILocalObjectStore localObjectStore,
     IShellAuthService shellAuthService,
     IMessageHandlerFactory messageHandlerFactory)
     : base(serviceLocator)
 {
     _localObjectStore      = localObjectStore;
     _shellAuthService      = shellAuthService;
     _messageHandlerFactory = messageHandlerFactory;
 }