public void DeleteLeaveDetals()
        {
            // Arrange
            LeaveDetailController controller = new LeaveDetailController();

            //var actResult = controller.Delete(1);
            //// Act
            //var result = actResult as OkNegotiatedContentResult<bool>;

            //// Assert
            //Assert.IsNotNull(result);
            //Assert.IsTrue(result.Content== true);
        }
        public void getLeaveDetals()
        {
            // Arrange
            LeaveDetailController controller = new LeaveDetailController();

            var actResult = controller.Get(1);
            // Act
            var result = actResult as OkNegotiatedContentResult <Espl.Linkup.Domain.Leaves.LeaveDetail.LeaveDetail>;

            // Assert
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Content.ID > 0);
        }
        public void PostLeaveDetals()
        {
            // Arrange
            LeaveDetailController controller = new LeaveDetailController();

            Espl.Linkup.Domain.Leaves.LeaveDetail.LeaveDetail LeaveDetalsObj = new Espl.Linkup.Domain.Leaves.LeaveDetail.LeaveDetail
            {
                NumberOfLeave = 12,
                HalfDayAbsent = 0,
                HalfDayLeave  = 1
            };
            // var actResult = controller.Post(LeaveDetalsObj);
            // Act
            //var result = actResult as OkNegotiatedContentResult<Espl.Linkup.Domain.LeavesDetail.LeaveDetail>;

            //// Assert
            //Assert.IsNotNull(result);
            //Assert.IsTrue(result.Content.ID > 0);
        }