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

            IActionResult response = _controller.AddCommissionEmployee(model);

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