public async Task PostAsync_ValidObjectPassed_ReturnsCreatedResponse( [Frozen] Service testService) { // Arrange _service.Setup(s => s.AddAsync(It.IsAny <Service>())).ReturnsAsync(testService); // Act var createdResponse = await _controller.PostAsync(It.IsAny <ServiceCreateDto>()); // Assert Assert.IsType <CreatedAtActionResult>(createdResponse.Result); }