public async Task CreateRightAnswerMission() { // Действие var missions = await _service.GetMissions(); int count = missions.Count; var newMission = new MissionUi { Name = "RightAnswer mission", Description = "RightAnswer", PhotoUrl = "https://pp.vk.me/c543109/v543109262/11668/-YwppEKJVx0.jpg", Difficulty = 1, ExecutionType = ExecutionType.RightAnswer, CorrectAnswers = "один;два", AgeFrom = 10, AgeTo = 80 }; await _controller.Create(newMission); missions = await _service.GetMissions(); // Утверждение Assert.IsNotEmpty(missions); Assert.AreEqual("RightAnswer mission", missions.Last().Name); Assert.AreEqual(count + 1, missions.Count); }