Exemplo n.º 1
0
 public void Setup()
 {
     _controller             = GlobalGameObject.AddComponent <MockShopController>();
     _controller.Credentials = new ShopCredentials();
     _editor      = Editor.CreateEditor(_controller) as ShopControllerBaseEditor;
     _editor.View = Substitute.For <IShopControllerBaseEditorView>();
 }
Exemplo n.º 2
0
        public void Setup()
        {
            _shopController             = GlobalGameObject.AddComponent <MockShopController>();
            _shopController.Credentials = new ShopCredentials(Utils.TestShopDomain, Utils.TestAccessToken);

            _shop = Substitute.For <IShop>();
            _shopController.Shop = _shop;
        }
Exemplo n.º 3
0
        public void Setup()
        {
            _gameObject                    = new GameObject("TestShopControllerBase");
            _shopController                = _gameObject.AddComponent <MockShopController>();
            _shopController.Credentials    = new ShopCredentials(Utils.TestShopDomain, Utils.TestAccessToken);
            _shopController.LoaderProvider = new UnityEditorLoaderProvider();

            _shop = Substitute.For <IShop>();
            _shopController.Shop = _shop;
        }