public void ParseContentInvalidOfficeHours() { _workTimeService.ParseInput($"{_path}\\Files\\WrongOfficeHours"); var error = new InvalidOfficeHoursError(ErrorMessages.InvalidOfficeHours); _errorResolver.Received().Resolve(Arg.Is <InvalidOfficeHoursError>(x => x.Code == ExitCode.InvalidOfficeHours && x.Message == error.Message)); }
public void DuplicateEmployeeRecordsCallsErrorResolver() { var duplicatedDate = DateTime.Now; _employees.Add(new Employee(duplicatedDate, "EMP001", 1)); _employees.Add(new Employee(duplicatedDate, "EMP001", 2)); _validationService.ValidateNoDuplicatedEmployeeDate(_employees); _errorResolver.Received().Resolve(Arg.Any <IResult>()); }