public async Task ValidPostHoursWorkedReturnsCreatedAtActionResponse() { var response = await _testController.PostHoursWorked(_testHoursWorked[0]); var responseResult = response.Result; responseResult.Should().BeOfType <CreatedAtActionResult>(); }
public async Task ValidPostUHoursWorkedReturnsCreatedAtActionResponse() { var newHoursWorked = ModelFakes.HoursWorkedFake.Generate(); var response = await _testHoursWorkedController.PostHoursWorked(newHoursWorked); var responseResult = response.Result; responseResult.Should().BeOfType <CreatedAtActionResult>(); }