Ejemplo n.º 1
0
        public async Task SolveMission_RequestSuccessful_ReturnMissionResult()
        {
            var json = "{ \"Success\": \"true\" }";

            _requestor.Setup(g => g.PostRequest(It.IsAny <string>(), null))
            .Returns(Task.FromResult(json));

            var result = await _missionService.SolveMission(It.IsAny <string>(), It.IsAny <string>());

            Assert.That(result.Success, Is.EqualTo(true));
        }