Example #1
0
        public void InitializeMocks()
        {
            BaseMock.Response             = null;
            BaseMock.ShouldThrowException = false;

            _dateTimeUtil = new DateTimeUtilMock();

            _teamsClientMock = TeamsClientMock.SetupMock();
            _teamsClient     = _teamsClientMock.Object;

            _positionsClientMock = PositionsClientMock.SetupMock();
            _positionsClient     = _positionsClientMock.Object;

            _holidaysClientMock = HolidaysClientMock.SetupMock();
            _holidaysClient     = _holidaysClientMock.Object;

            _dayOffsClientMock = DayOffsClientMock.SetupMock();
            _dayOffsClient     = _dayOffsClientMock.Object;

            _motivationModificatorsClientMock = MotivationModificatorsClientMock.SetupMock();
            _motivationModificatorsClient     = _motivationModificatorsClientMock.Object;

            _otherPaymentsClientMock = OtherPaymentsClientMock.SetupMock();
            _otherPaymentsClient     = _otherPaymentsClientMock.Object;

            _salaryClientMock = SalaryClientMock.SetupMock();
            _salaryClient     = _salaryClientMock.Object;

            _staffsClientMock = StaffClientMock.SetupMock();
            _staffsClient     = _staffsClientMock.Object;

            _peopleClientMock = PeopleClientMock.SetupMock();
            _peopleClient     = _peopleClientMock.Object;

            _roadMapsClientMock = RoadMapsClientMock.SetupMock();
            _roadMapsClient     = _roadMapsClientMock.Object;
        }
Example #2
0
 public DayOffsController(DayOffsClient dayOffsClient, IEMSLogger <DayOffsController> logger, IDateTimeUtil dateTimeUtil) :
     base(logger, dateTimeUtil)
 {
     _dayOffsClient = dayOffsClient;
 }