public void PostgisSettingTest_ShouldInitalizeValues_OnConstruction() { var host = "192.13.2.3"; var port = "5432"; var database = "OPEN_FTTH"; var username = "******"; var password = "******"; var postgisSetting = new PostgisSetting { Host = host, Port = port, Database = database, Password = password, Username = username }; using (new AssertionScope()) { postgisSetting.Host.Should().BeEquivalentTo(host); postgisSetting.Port.Should().BeEquivalentTo(port); postgisSetting.Database.Should().BeEquivalentTo(database); postgisSetting.Password.Should().BeEquivalentTo(password); postgisSetting.Username.Should().BeEquivalentTo(username); } }
public PostgresRouteNetworkSubscriber( IOptions <KafkaSetting> kafkaSetting, IOptions <PostgisSetting> postgisSetting, IMediator mediator, ILogger <PostgresRouteNetworkSubscriber> logger) { _kafkaSetting = kafkaSetting.Value; _mediator = mediator; _logger = logger; _postgisSetting = postgisSetting.Value; }