public ChallengeController(ILoggerFactory loggerFactory, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IPersonagemService personagemService, IEspecieService especieService, TokenDescriptor tokenDescriptor) { _userManager = userManager; _signInManager = signInManager; _logger = loggerFactory.CreateLogger <AccountController>(); _personagemService = personagemService; _especieService = especieService; _tokenDescriptor = tokenDescriptor; }
public void TestInsert() { mock = Substitute.For <IPersonagemService>(); PersonagemDTO personagem = new PersonagemDTO { Name = "Harry Potter", Role = "student", School = "Hogwarts School of Witchcraft and Wizardry", House = "5a05e2b252f721a3cf2ea33f", Patronus = "stag" }; mock.Add(personagem); }
public void TesteHouseValida() { mock = Substitute.For <IPersonagemService>(); Personagem personagem = new Personagem { Name = "Harry Potter", Role = "student", School = "Hogwarts School of Witchcraft and Wizardry", House = "5a05e2b252f721a3cf2ea33f", Patronus = "stag" }; //house invalida mock.GetHouseById("4455335") .Returns((List <HouseDTO>)null); //house valida mock.GetHouseById(personagem.House) .Returns(new List <HouseDTO>()); }
public PersonagemController(IPersonagemService personagemService) { this._personagemService = personagemService; }
/// <summary> /// ok /// </summary> /// <param name="personagemService"></param> public MakeMagicController(IPersonagemService personagemService) { _personagemService = personagemService; }
public PersonagemController(IPersonagemService characterService) { _characterService = characterService; }