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

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

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