예제 #1
0
        public void GetAllOrganisations_Successfull()
        {
            //Arrange
            OrganisationManager organisationManager = new OrganisationManager("test");

            //Act
            var result = organisationManager.GetAllOrganisations();

            //Assert
            Assert.AreEqual(2, result.Count);
        }
        public IActionResult CreateTournamentHostLink()
        {
            List <OrganisationDTO> organisation = organisationManager.GetAllOrganisations();

            ViewData["HostLink"] = "null";
            CreateHostLinkViewModel model = new CreateHostLinkViewModel()
            {
                Organisations = organisation,
            };

            return(View(model));
        }