public void UpdateSprocs() { var stream = this.GetCreatedSqlStream(); var updateOp = new UpdateStreamStoredProceduresOp( RecordTagAssociationManagementStrategy.ExternallyManaged, 5); var result = stream.Execute(updateOp); this.testOutputHelper.WriteLine("Version: " + (result.PriorVersion ?? "<null>")); }
static UpdateStreamStoredProceduresOpTest() { ConstructorArgumentValidationTestScenarios .AddScenario(() => new ConstructorArgumentValidationTestScenario <UpdateStreamStoredProceduresOp> { Name = "constructor should throw ArgumentOutOfRangeException when parameter 'maxConcurrentHandlingCount' is 0 scenario", ConstructionFunc = () => { var referenceObject = A.Dummy <UpdateStreamStoredProceduresOp>(); var result = new UpdateStreamStoredProceduresOp( referenceObject.RecordTagAssociationManagementStrategy, 0); return(result); }, ExpectedExceptionType = typeof(ArgumentOutOfRangeException), ExpectedExceptionMessageContains = new[] { "maxConcurrentHandlingCount" }, }) .AddScenario(() => new ConstructorArgumentValidationTestScenario <UpdateStreamStoredProceduresOp> { Name = "constructor should throw ArgumentOutOfRangeException when parameter 'maxConcurrentHandlingCount' is negative scenario", ConstructionFunc = () => { var referenceObject = A.Dummy <UpdateStreamStoredProceduresOp>(); var result = new UpdateStreamStoredProceduresOp( referenceObject.RecordTagAssociationManagementStrategy, A.Dummy <NegativeInteger>()); return(result); }, ExpectedExceptionType = typeof(ArgumentOutOfRangeException), ExpectedExceptionMessageContains = new[] { "maxConcurrentHandlingCount" }, }); }