public async Task GetIntValue_ReturnsSomeInt() { var config = new Mock <IConfigurationManager>(); config.Setup(x => x.GetSetting <int>(It.IsAny <string>(), 0)).Returns(12); var repo = new LunchRepository(config.Object); var result = await repo.GetIntValueAsync(); Assert.IsInstanceOfType(result, typeof(int)); Assert.AreEqual(result, 12); }