示例#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;
        }
示例#2
0
 public StaffController(StaffsClient staffsClient, IEMSLogger <StaffController> logger, IDateTimeUtil dateTimeUtil) :
     base(logger, dateTimeUtil)
 {
     _staffsClient = staffsClient;
 }