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(); }
public override void Init() { Jedis = new ObservableCollection <Jedi>(_storage.GetJedis()); Siths = new ObservableCollection <Sith>(_storage.GetSiths()); Combats = new ObservableCollection <Combat>(_storage.GetCombats()); }