Exemplo n.º 1
0
        public IHttpActionResult Post(HrRequest hrRequest)
        {
            var hrRequestService = new HrRequestService();

            hrRequest.AssignedTo = hrRequestService.AssignHrManager();

            db.HrRequests.Add(hrRequest);
            db.SaveChanges();

            return(Ok(hrRequest));
        }
Exemplo n.º 2
0
        public void Assign_John()
        {
            var result = _hrRequestService.AssignHrManager();

            Assert.AreEqual(result, "John");
        }