public async Task WhenRepositoryReturnEmtyList_ShouldReturn_NoContent() { // Arrange _movieServiceMock.Setup(a => a.GetCities()) .ReturnsAsync(() => new List <CityDTO>(new List <CityDTO> { })); // Act var result = (NoContentResult)await _movieController.Cities(); var a = HttpStatusCode.NoContent; // Action Assert.AreEqual((int)HttpStatusCode.NoContent, result.StatusCode); }