Esempio n. 1
0
        public async Task AddFollower_Valid_Test()
        {
            _cityMembersService.Setup(c => c.AddFollowerAsync(It.IsAny <int>(), It.IsAny <ClaimsPrincipal>()))
            .ReturnsAsync(new CityMembersDTO());

            _logger.Setup(l => l.LogInformation(It.IsAny <string>()));

            CitiesController citycon = CreateCityController;

            var result = await citycon.AddFollower(GetFakeID());

            Assert.NotNull(result);
            Assert.IsInstanceOf <OkObjectResult>(result);
        }