示例#1
0
        public void AddEmployee_AddsAnHourlyEmployee()
        {
            AddHourlyEmployeeRequestModel model = new AddHourlyEmployeeRequestModel
            {
                Id      = "143554AEL1223",
                Name    = "H.G. Pennypacker",
                Address = "123 Main St, Redmond, WA 98052",
                Rate    = 88.75m
            };

            IActionResult response = _controller.AddHourlyEmployee(model);

            response.Should().BeAssignableTo <OkResult>();
        }