public void WithContent_SHOULD_set_Title_and_Body_to_default_if_not_provided() { //Arrange var sut = new PushNotificationBuilder(_visibleTemplate); //Act var result1 = sut.WithContent("", "Body").Create(); var result2 = sut.WithContent("Title", "").Create(); //Assert Assert.AreEqual("DefaultTitle", result1.Title); Assert.AreEqual("Body", result1.Body); Assert.AreEqual("Title", result2.Title); Assert.AreEqual("DefaultBody", result2.Body); }
public void WithContent_SHOULD_set_Title_and_Body_for_visible_template() { //Arrange var sut = new PushNotificationBuilder(_visibleTemplate); //Act var result = sut .WithContent("Title", "Body").Create(); //Assert Assert.AreEqual("Title", result.Title); Assert.AreEqual("Body", result.Body); }