コード例 #1
0
        public async Task CreateNewLocation_ValidationProblem()
        {
            // Arrange
            NewLocationModel locationModel = new();

            _sut.ModelState.AddModelError("Field", "Sample Error Details");

            // Act
            await _sut.CreateNewLocation(locationModel);

            // Assert
            await _mockLocationsService.DidNotReceiveWithAnyArgs().CreateAsync(default);