public void Setup() { _controller = GlobalGameObject.AddComponent <SingleProductShopController>(); _shop = Substitute.For <ISingleProductShop>(); _controller.Shop = _shop; _controller.Credentials = new ShopCredentials(Utils.TestShopDomain, Utils.TestAccessToken); }
public void Setup() { _gameObject = new GameObject("TestSingleProductShopController"); _controller = _gameObject.AddComponent <SingleProductShopController>(); _controller.LoaderProvider = new UnityEditorLoaderProvider(); _shop = Substitute.For <ISingleProductShop>(); _controller.Shop = _shop; _controller.Credentials = new ShopCredentials(Utils.TestShopDomain, Utils.TestAccessToken); }