public IActionResult CreateTournamentHostLink(CreateHostLinkViewModel model) { string HostLink = organisationManager.CreateHostLink(model.OrganisationID); ViewData["HostLink"] = HostLink; return(View(model)); }
public void CreateHostLink_Successfull() { //Arrange OrganisationManager organisationManager = new OrganisationManager("test"); string OrgID = "1"; string CorrectString = $"https://f4dedtournaments-dev-as.azurewebsites.net/Tournament/CreateTournament?OrganisationID={OrgID}"; //Act var result = organisationManager.CreateHostLink(OrgID); //Assert Assert.AreEqual(CorrectString, result); }