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

            IActionResult response = _controller.AddSalaryEmployee(model);

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