public override void OneTimeSetup() { _multipleRequestInstanceType = typeof(MultipleRequest); _multipleRequestInstanceFixture = this.Create <MultipleRequest>(true); _multipleRequestInstance = _multipleRequestInstanceFixture ?? this.Create <MultipleRequest>(false); CurrentInstance = _multipleRequestInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
private static object GetInnerRequest(MultipleRequest multipleRequest) { var seededRequest = multipleRequest.Request as SeededRequest; if (seededRequest == null) { return(multipleRequest.Request); } return(seededRequest.Request); }
public void AUT_MultipleRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var request = this.CreateType <object>(); MultipleRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new MultipleRequest(request); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _multipleRequestInstance.ShouldNotBeNull(); _multipleRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }