Ejemplo n.º 1
0
        public void ValidateContentInvokesValidateNoDuplicatedEmployeeDate()
        {
            IList <IBookedRecords> content = new List <IBookedRecords> {
                _employees.First()
            };
            var parsedResult = new ParsedResult()
            {
                BookedRecords = content
            };

            _workTimeService.ValidateContent(parsedResult);

            _validationService.Received().ValidateNoDuplicatedEmployeeDate(Arg.Any <IList <Employee> >());

            _errorResolver.DidNotReceive().Resolve(Arg.Any <IResult>());
        }
        public void ValidateNoDuplicatedEmployeeDateSuccess()
        {
            _validationService.ValidateNoDuplicatedEmployeeDate(_employees);

            _errorResolver.DidNotReceive().Resolve(Arg.Any <IResult>());
        }