public void QueriesContextForItem( string reason, int val, ISpecimenContext context, GetResponseBuilder sut) { context.MockToReturn(reason); context.MockToReturn(val); ((GetResponse <int>)sut.Create(typeof(GetResponse <int>), context)) .Value.Should().Be(val); }
public void ExceptionNull( string reason, int val, ISpecimenContext context, GetResponseBuilder sut) { context.MockToReturn(reason); context.MockToReturn(val); ((GetResponse <int>)sut.Create(typeof(GetResponse <int>), context)) .Exception.Should().BeNull(); }
public void ReturnsGetResponse( string reason, int val, ISpecimenContext context, GetResponseBuilder sut) { context.MockToReturn(reason); context.MockToReturn(val); sut.Create(typeof(GetResponse <int>), context) .Should().BeOfType <GetResponse <int> >(); }
public void ReturnsSuccessful( string reason, int val, ISpecimenContext context, GetResponseBuilder sut) { context.MockToReturn(reason); context.MockToReturn(val); ((GetResponse <int>)sut.Create(typeof(GetResponse <int>), context)) .Succeeded.Should().BeTrue(); }
public void UnrelatedTypeReturnsNoSpecimen( string reason, int val, ISpecimenContext context, GetResponseBuilder sut) { context.MockToReturn(reason); context.MockToReturn(val); sut.Create(typeof(string), context) .Should().BeOfType <NoSpecimen>(); }