public void setUp()
		{
			//1. SETUP DEPENDENCIES
			_iCustomModel = new CustomModel();
			_iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal();

		}
Example #2
0
        protected override void Process(ICustomModel model)
        {
            Model = (TModel)model;
            OnInitialize(Model);

            base.Process(model);
        }
Example #3
0
 public void setUp()
 {
     //1. SETUP DEPENDENCIES
     _iCustomService = new CustomService();
     _iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal();             //injected, in production
     //
     _iCustomModel = new CustomModel();
     _iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal();             //injected, in production
     _iCustomModel.gameListUpdatedSignal.AddListener(onCustomGameListUpdated);
 }
		public void setUp()
		{
			//1. SETUP DEPENDENCIES
			_iCustomService 	= new CustomService();
			_iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal(); //injected, in production
			//
			_iCustomModel 		= new CustomModel();
			_iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal(); //injected, in production
			_iCustomModel.gameListUpdatedSignal.AddListener (onCustomGameListUpdated);


			
		}
Example #5
0
        public void AddView(Window type, ICustomModel model, bool activate = false)
        {
            var hasInstance = _instancedViews.TryGetValue(type, out var view);

            if (!hasInstance)
            {
                view = _viewFactory.CreateWindow(type);
                _instancedViews.Add(type, view);
            }

            view.gameObject.SetActive(activate);
            view.Initialize(model);
        }
Example #6
0
        protected TView AddNestedView <TView>(TView view, ICustomModel model)
            where TView : BaseView
        {
            var   viewId = view.GetInstanceID().ToString();
            TView nested;

            if (_nestedViews.ContainsKey(viewId))
            {
                nested = (TView)_nestedViews[viewId];
                nested.gameObject.SetActive(true);
            }
            else
            {
                nested = Instantiate(view, transform);
                _nestedViews.Add(viewId, nested);
            }

            nested.Initialize(model);
            return(nested);
        }
Example #7
0
 public void tearDown()
 {
     _iCustomModel = null;
 }
Example #8
0
 public void setUp()
 {
     //1. SETUP DEPENDENCIES
     _iCustomModel = new CustomModel();
     _iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal();
 }
Example #9
0
 public void tearDown()
 {
     _iCustomService = null;
     _iCustomModel   = null;
 }
		public void tearDown()
		{
			_iCustomService = null;
			_iCustomModel 	= null;
		}
Example #11
0
 protected virtual void Process(ICustomModel model)
 {
 }
Example #12
0
 public void Initialize(ICustomModel model)
 {
     Process(model);
     AddCloseButtonEvents();
 }
		public void tearDown()
		{
			_iCustomModel = null;
		}