Arc.Integration.Tests.Infrastructure.Validation.BaseValidationListenerTests.Should_throw_exception_when_entity_is_not_valid C# (CSharp) 메소드

Should_throw_exception_when_entity_is_not_valid() 개인적인 메소드

private Should_throw_exception_when_entity_is_not_valid ( ) : void
리턴 void
        public void Should_throw_exception_when_entity_is_not_valid()
        {
            var validationResults = MockRepository.GenerateMock<IValidationResults>();
            validationResults.Stub(x => x.IsValid).Return(false);
            var entity = EntityFactory.CreateInvalidDomainEntity();
            var type = typeof(DomainEntity);
            _validation.Stub(x => x.Validate(entity, type)).Return(validationResults);

            CreateSUTWithFakes().Validate(entity, type);
        }