public void Given_Invalid_Type_When_WithContainer_Invoked_Then_It_Should_Throw_Exception() { var sink = new FakeSchemaSink(); Action action = () => SchemaSinkExtensions.WithContainer(sink, null); action.Should().Throw <ArgumentNullException>(); }
public void Given_Null_Parameters_When_WithContainer_Invoked_Then_It_Should_Throw_Exception() { Action action = () => SchemaSinkExtensions.WithContainer(null, null); action.Should().Throw <ArgumentNullException>(); action = () => SchemaSinkExtensions.WithContainer(new Mock <ISchemaSink>().Object, null); action.Should().Throw <ArgumentNullException>(); }
public void Given_HttpClient_When_WithContainer_Invoked_Then_It_Should_Return_Result() { var sink = new BlobStorageSchemaSink(); var uri = new Uri("https://localhost"); var container = "lorem-ipsum"; var result = SchemaSinkExtensions.WithContainer(sink, container); result .Should().NotBeNull() .And.BeAssignableTo <ISchemaSink>(); }