public void SetPath() { // arrange var options = new HttpGetMiddlewareOptions(); // act options.Path = new PathString("/foo"); // assert Assert.Equal(new PathString("/foo"), options.Path); }
public void SetEmptyPathString() { // arrange var options = new HttpGetMiddlewareOptions(); // act Action action = () => options.Path = default; // assert Assert.Throws <ArgumentException>(action); }
public void UseGraphQLHttpGet_BuilderOptions_BuilderIsNull() { // arrange var options = new HttpGetMiddlewareOptions(); // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(null, options); // assert Assert.Throws <ArgumentNullException>(action); }