Esempio n. 1
0
        //[Fact]
        public async void LoadDataFromTestService_Test()
        {
            var personSourceConfigMock = new Mock <IPersonSourceConfig>();

            personSourceConfigMock.Setup(c => c.PersonSourceUrl).Returns("http://localhost:3000");
            var provider = new PersonProvider(personSourceConfigMock.Object);

            var people = await provider.LoadPeople();

            Assert.Single(people, p => p.Name == "Steve");
        }