Пример #1
0
        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);
        }
Пример #2
0
        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);
        }