public void GetDeserialisedObject_GivenConfig_ReturnDeserialisedObject(string filename) { this._config = SqlMailerConfig.CreateInstance(filename); this._config.Should().NotBeNull(); var smtp = this._config.Smtp; smtp.Should().NotBeNull(); smtp.EnableSsl.Value.Should().Be(false); smtp.Host.Should().Be("localhost"); smtp.Port.Value.Should().Be(25); smtp.DefaultCredentials.Value.Should().Be(true); this._config.Applications.Count.Should().BeGreaterOrEqualTo(1); var application = this._config.Applications.FirstOrDefault(); application.Should().NotBeNull(); application.IsBodyHtml.Value.Should().Be(true); }
public void Init() { this._config = SqlMailerConfig.CreateInstance(); this._mailer = new Aliencube.SqlMailer.Clr.SqlMailer(this._config); }