示例#1
0
        public void LoadCountries_DeserializesJson()
        {
            var sut = new GeonamesController(new GeonamesService(), LoadMockCountries);

            var countries = sut.LoadCountries();

            countries.Should().HaveCount(1);
            countries.First().Capital.Should().Be("Kabul");
        }
 public MeningoPatientController(IApplicationDbContext applicationDbContext,
                                 GeonamesController geonamesController) : base(applicationDbContext)
 {
     this.geonamesController = geonamesController;
 }