public void CreateWithEmptyTopic_GetArgumentException() { var factory = new NatsProducerFactory(); Action act = () => { factory.Create("", new ProducerConfig()); }; act.Should().Throw <ArgumentNullException>(); }
public void CreateWithNullConfig_GetArgumentException() { var factory = new NatsProducerFactory(); Action act = () => { factory.Create("topic", null); }; act.Should().Throw <ArgumentNullException>(); }
public void Create_Success() { var factory = new NatsProducerFactory(); var producer = factory.Create("topic", new ProducerConfig()); producer.Should().NotBeNull(); }