Example #1
0
        public void DescriptionShouldNotEmptyOrNull(string description)
        {
            var callback = BuilderCallBack.New().WithDescription(description).Build();

            callback.IsValid.Should().BeFalse();
            callback.ValidationResult.Errors.Should().HaveCountGreaterThan(0);
        }
Example #2
0
        public void GuidShouldBeRequired()
        {
            var callback = BuilderCallBack.New().WithId(new Guid()).Build();

            callback.IsValid.Should().BeFalse();
            callback.ValidationResult.Errors.Should().HaveCountGreaterThan(0);
        }
Example #3
0
        public void ShouldRemoveCallBack()
        {
            var callback = BuilderCallBack.New().WithId(IdCallBack).Build();

            var output = callBackWriteOnlyRepository.Remove(callback);

            output.Should().BeGreaterThan(0);
        }
Example #4
0
        public void ShouldUpdateCallBack(string message)
        {
            var callback = BuilderCallBack.New().WithId(IdCallBack).WithDescription(message).Build();

            var output = callBackWriteOnlyRepository.Update(callback);

            output.Should().BeGreaterThan(0);
        }
Example #5
0
        public void ShoudCreateCallBack()
        {
            var callback = BuilderCallBack.New().Build();

            callback.IsValid.Should().BeTrue();
        }