public void GetAllApplications_ReturnsApplications() { // Arrange ConfigDataManager manager = new ConfigDataManager(mockContext.Object); // Act var result = manager.GetAllApplications(); // Assert Assert.IsNotNull(result); Assert.AreEqual(3, result.Count); }
public ConfigResponse <List <string> > GetAllApplications() { ConfigResponse <List <string> > retval = new ConfigResponse <List <string> >(); using (var db = new CentralConfigDb()) { ConfigDataManager manager = new ConfigDataManager(db); retval.Data = manager.GetAllApplications(); retval.Status = System.Net.HttpStatusCode.OK; retval.Message = "Applications found"; } return(retval); }