コード例 #1
0
        public void RequestAllMunicipalities_GetAllMunicipalities()
        {
            PlacesService service = GetService();
            var           result  = service.GetAllMunicipalities();

            Assert.IsInstanceOfType(result, typeof(Task <List <Municipality> >));
        }
コード例 #2
0
        public void RequestAllMunicipalities_CallMunicipalitiesRepo()
        {
            PlacesService service = GetService();
            var           result  = service.GetAllMunicipalities();

            _municipalityRepoMock.Verify(m => m.GetMunicipalities(), Times.Once);
        }