public void AppSettingsInt_When_no_key_found_returns_int_Returns_0() { //arrange var appKey = "ForUnitTestIntReturnKeyNotThere"; var mut = new SystemConfigurationService(_repository, _fakecacheprovider); //act var result = mut.AppSettingsInt(appKey); //assert Assert.AreEqual(0, result); //cleanup }
public void AppSettingsInt_returns_int_Returns_converted_value_config_file() { //arrange var appKey = "ForUnitTestIntReturnKey"; var mut = new SystemConfigurationService(_repository, _fakecacheprovider); //act var result = mut.AppSettingsInt(appKey); //assert Assert.AreEqual(1024, result); //cleanup }