public void SetUp() { var randomlist = new RandomListModel(); randomlist.Tasks.Add(new Task() { Text = "Clean the house", Room = Room.Bathroom }); randomlist.Tasks.Add(new Task() { Text = "Clean the sink", Duration = 5 }); _randomViewModel = new RandomUnfuckingViewModel(randomlist); }
public void TestConstructor() { var randomlist = new RandomListModel(); randomlist.Tasks.Add(new Task() { Text = "Clean the house" }); randomlist.Tasks.Add(new Task() { Text = "Clean the sink" }); Assert.AreEqual(2, randomlist.Tasks.Count); }
public RandomUnfuckingViewModel(RandomListModel randomListModel) { ChallengeText = string.Empty; TimeChoice = new List<int> {5, 10, 20}; SelectedTimeChoice = TimeChoice[0]; RoomChoice = new List<string> {"All Rooms", "Bathroom", "Bedroom", "Kitchen", "Living Room"}; SelectedRoomChoice = RoomChoice[0]; Model = randomListModel; }