public void Initialize()
        {
            this._remoteProductService      = Substitute.For <RemoteProductService>("StockAllocation/Products");
            this._dsrStockAllocationService = Substitute.For <DsrStockAllocationService>();

            var connectivityService = Substitute.For <IConnectivityService>();

            connectivityService.HasConnection().Returns(true);
            Resolver.Instance.RegisterSingleton(connectivityService);

            this._viewModel = new ManageStockViewModel
            {
                RemoteProductService      = this._remoteProductService,
                DsrStockAllocationService = this._dsrStockAllocationService,
                DsrPhoneNumber            = "0711111111"
            };

            this._falseStatusDsrStockServerResponseObject = new ServerResponse <DsrStockServerResponseObject>
            {
                IsSuccessStatus = true,
                RawResponse     = this._falseStatusJson
            };

            this._successDsrStockServerResponseObject = new ServerResponse <DsrStockServerResponseObject>
            {
                IsSuccessStatus = true,
                RawResponse     = this._successJson
            };

            this._noPoductsDsrStockServerResponseObject = new ServerResponse <DsrStockServerResponseObject>
            {
                IsSuccessStatus = true,
                RawResponse     = this._noProductsJson
            };
        }
 public UnitsStatsFragmentViewModel(LocalProductService localProductService, RemoteProductService remoteProductService, LocalUnitsService localUnitsService, RemoteUnitsService remoteUnitsService)
 {
     this._localProductService  = localProductService;
     this._remoteProductService = remoteProductService;
     this._localUnitsService    = localUnitsService;
     this._remoteUnitsService   = remoteUnitsService;
 }