public ActionResult Investigar(int response)
        {
            Detective detective = new Detective("Lin Ust Orvalds");

            Witness witness = new Witness(this.dataContext.Responses.ToList()[response]);

            Case caseInvestigation = this.GetCase();

            Response resposeOfCase = detective.SolveCase(caseInvestigation, witness);

            return View("_RespotaInvestigacao", resposeOfCase);
        }
コード例 #2
0
        public void Resolver_Caso_Resposata_Um()
        {
            Detective detetive = new Detective("Detetive de Teste");

            Case casoParaResolver = HelpMock.MockCase();
            Witness testemunha =  HelpMock.MockWitnessWithResponse(0);

            Response respostaDoCaso = detetive.SolveCase(casoParaResolver, testemunha);
            Response respostaEsperada = HelpMock.ResposataUm();

            this.VerificaResposta(respostaDoCaso, respostaEsperada);
        }