Exemple #1
0
            public void WhenFailure_IncludesAllErrors()
            {
                var result = _failure.AddErrors(_errors);

                result.Errors.Should().Contain(_errors);
            }
Exemple #2
0
            public void WhenSuccess_DiscardsValue()
            {
                var result = _success.AddErrors(_errors);

                result.HasValue.Should().BeFalse();
            }