public void GetChurch_ByName_Tests(string churchName) { _churchService.RemoveAllChurchesForTesting(); AddSomeChurches(); var actual = _churchService.GetChurch(churchName); Assert.True(actual is IChurch && actual.Name == churchName); }
public IHttpActionResult Get() { ChurchService churchService = new ChurchService(); var churches = churchService.GetChurch(); return(Ok(churches)); }