public void Setup()
        {
            _storageMock       = Substitute.For <IStarWarsStorage>();
            _resourcesMock     = Substitute.For <IResources>();
            _successDialogMock = Substitute.For <IDialog>();

            _vm = new StarWarsArenaViewModel(_storageMock, _resourcesMock, _successDialogMock);

            _storageMock.GetJedis().Returns(GetJedisMock());
            _storageMock.GetSiths().Returns(GetSithsMock());
            _storageMock.GetCombats().Returns(GetCombats());

            _vm.Init();
        }
Example #2
0
 public void Init()
 {
     ArenaViewModel = new StarWarsArenaViewModel();
     ArenaViewModel.Init();
 }