Exemplo n.º 1
0
        public void AllLocalizations_WhenNoLocalizationsInDb_ReturnsNotFound()
        {
            mockLocalizationRepository.Setup(repository => repository.GetAllAsync()).ReturnsAsync(new List <Localization>());

            var result = controller.AllLocalizations().Result;

            Assert.IsInstanceOf <NotFoundResult>(result);
        }