public void ExceptionNull( string reason, ISpecimenContext context, ErrorResponseBuilder sut) { context.MockToReturn(reason); ((ErrorResponse)sut.Create(typeof(ErrorResponse), context)) .Exception.Should().BeNull(); }
public void QueriesContextForReason( string reason, ISpecimenContext context, ErrorResponseBuilder sut) { context.MockToReturn(reason); ((ErrorResponse)sut.Create(typeof(ErrorResponse), context)) .Reason.Should().Be(reason); }
public void ReturnsErrorResponse( string reason, ISpecimenContext context, ErrorResponseBuilder sut) { context.MockToReturn(reason); sut.Create(typeof(ErrorResponse), context) .Should().BeOfType <ErrorResponse>(); }
public void ReturnsSuccessful( string reason, ISpecimenContext context, ErrorResponseBuilder sut) { context.MockToReturn(reason); ((ErrorResponse)sut.Create(typeof(ErrorResponse), context)) .Succeeded.Should().BeTrue(); }
public void UnrelatedTypeReturnsNoSpecimen( string reason, ISpecimenContext context, ErrorResponseBuilder sut) { context.MockToReturn(reason); sut.Create(typeof(string), context) .Should().BeOfType <NoSpecimen>(); }