public async Task TestDeleteAsync() { var missionService = new MissionService(); var missions = (await missionService.ListAsync()).ToList(); var secondMission = missions[25]; await missionService.DeleteAsync(secondMission); var newMissions = (await missionService.ListAsync()).ToList(); Assert.AreEqual(25, newMissions.Count); }
public async Task TestListAsync() { var missionService = new MissionService(); var missions = (await missionService.ListAsync()).ToList(); Assert.AreEqual(26, missions.Count); //Assert.AreEqual("food", missions[0].MissionName); //Assert.AreEqual("mac", missions[1].Message); }