Exemplo n.º 1
0
        public async Task ValidPostHoursWorkedReturnsCreatedAtActionResponse()
        {
            var response = await _testController.PostHoursWorked(_testHoursWorked[0]);

            var responseResult = response.Result;

            responseResult.Should().BeOfType <CreatedAtActionResult>();
        }
Exemplo n.º 2
0
        public async Task ValidPostUHoursWorkedReturnsCreatedAtActionResponse()
        {
            var newHoursWorked = ModelFakes.HoursWorkedFake.Generate();
            var response       = await _testHoursWorkedController.PostHoursWorked(newHoursWorked);

            var responseResult = response.Result;

            responseResult.Should().BeOfType <CreatedAtActionResult>();
        }