Exemplo n.º 1
0
        public void AddHeader_WithHeader_ReturnHtmlWithBothHeaders()
        {
            // arrange
            _bgEmailBuilder = new BlueGrayEmailBuilder();
            _bgEmailBuilder.AddHeader("TestHeader#@!1");

            // act
            _bgEmailBuilder.AddHeader("TestHeader#@!2");
            var result = _bgEmailBuilder.GetHTML();

            // assert
            Assert.IsTrue(result.Contains("TestHeader#@!1") && result.Contains("TestHeader#@!2"));
        }
Exemplo n.º 2
0
        public void Reinitialize_BuilderWithHeader_ReturnHtmlWithoutHeader()
        {
            // arrange
            _bgEmailBuilder = new BlueGrayEmailBuilder();
            _bgEmailBuilder.AddHeader("TestHeader#@!");

            // act
            _bgEmailBuilder.Reinitialize();
            var result = _bgEmailBuilder.GetHTML();

            // assert
            Assert.IsTrue(!result.Contains("TestHeader#@!"));
        }