public void CheckCCMailTest_To_Principal_LTO_ConfirmAction_Return_currrentUserPlus_eMailCC_ConfirmHire_LTO() { //Arrange action = "ConfirmHire"; var confirmCC = WebConfigValue.getValuebyKey("eMailCC_ConfirmHire_LTO"); var expect = mCC + ";" + hrCC + ";" + confirmCC; // Act var result = EmailNotification.CheckCCMail(mCC, who, action, appType, postingCycle, positionTitle, schoolPanel); //Assert // Assert.AreEqual(expect, result, $"CC Email Address for {action} on {appType} to {who}, {result} "); StringAssert.Contains(result, confirmCC, $"CC Email Address for {action} on {appType} to {who}, {result} "); }
public void CheckCCMailTest_To_Principal_LTO_anyAction_French_Return_currrentUserPlus_eMailCC_French() { //Arrange positionTitle = "Grade 5 French teacher"; var french = WebConfigValue.getValuebyKey("eMailCC_French"); var expect = mCC + ";" + hrCC + ";" + french; // Act var result = EmailNotification.CheckCCMail(mCC, who, action, appType, postingCycle, positionTitle, schoolPanel); //Assert // Assert.AreEqual(expect, result, $"CC Email Address for {action} on {appType} to {who}, {result} "); StringAssert.Contains(result, french, $"CC Email Address for {action} on {appType} to {who}, {result} "); }
public void CheckCCMailTest_To_Principal_POP_PostingAction_Secondary_Return_currrentUserPlusHR_eMailCC_POP_S() { //Arrange appType = "POP"; schoolPanel = "05"; var pop_E = WebConfigValue.getValuebyKey("eMailCC_POP_S"); var expect = mCC + ";" + pop_E + ";" + union; // Act var result = EmailNotification.CheckCCMail(mCC, who, action, appType, postingCycle, positionTitle, schoolPanel); //Assert // Assert.AreEqual(expect, result, $"CC Email Address for {action} on {appType} to {who}, {result} "); StringAssert.Contains(result, pop_E, $"CC Email Address for {action} on {appType} to {who}, {result} "); }
public void CheckCCMailTest_To_Principal_LTO_anyAction_French_Return_currrentUserPlus_eMailCC_ConfirmHire_eMailCC_Music() { //Arrange action = "ConfirmHire"; positionTitle = "Elementary Music teacher"; var confirmCC = WebConfigValue.getValuebyKey("eMailCC_ConfirmHire_LTO"); var music = WebConfigValue.getValuebyKey("eMailCC_Music"); var expect = mCC + ";" + hrCC + ";" + confirmCC + ";" + music; // Act var result = EmailNotification.CheckCCMail(mCC, who, action, appType, postingCycle, positionTitle, schoolPanel); int resultL = result.Length; expect = expect.Substring(0, resultL); //Assert // Assert.AreEqual(expect, result, $"CC Email Address for {action} on {appType} to {who}, {result} "); StringAssert.Contains(result, confirmCC, $"CC Email Address for {action} on {appType} to {who}, {result} "); }
private HistoryManager() { this.HistoryEntries = new List <HistoryEntry>(); this.MaxEntries = 10; this.filterSet = null; this.Active = false; IConfigurationUnitStore store = ConfigurationUnitStore.DefaultStore; WebConfigValue configValue = store.WebConfigValueByName(Constants.ConfigParamMenuName); string menuName = Constants.DefaultHistoryMenuName; if (configValue != null) { menuName = configValue.Value; } Menu menu = store.MenuByName(menuName); if (menu != null) { this.ConfigureWithViewReference(menu.ViewReference); } }