public ArenaDisplayViewModelTests() { _dataServiceMock = new Mock <IDataService>(); _rconServiceMock = new Mock <IRconService>(); _arenaDisplayViewModel = new ArenaDisplayViewModel(_dataServiceMock.Object, _rconServiceMock.Object); }
public void TestDefaultArenaIsLoadedFromDataService() { const int arenaIndex = 5; _dataServiceMock.Setup(dataService => dataService.Load(Constants.DataNames.ArenaIndex, It.IsAny <int>())) .Returns(arenaIndex); _arenaDisplayViewModel = new ArenaDisplayViewModel(_dataServiceMock.Object, _rconServiceMock.Object); Assert.Equal(Constants.ArenaDevNames[arenaIndex], _arenaDisplayViewModel.ArenaName); }