public void GetAll_ReturnsVisits() { var visits = VisitSamples.Get(); var controller = SetupController(visits); var response = controller.GetAll(); var responseValue = Assert.IsAssignableFrom <IEnumerable <Visit> >(response.Value); Assert.NotEmpty(responseValue); }
public void Load_ReturnsOK() { var stringBuilder = new StringBuilder(); var controller = SetupController(stringBuilder: stringBuilder); var visits = VisitSamples.Get(); var response = controller.PostBatch(visits); Assert.IsAssignableFrom <OkResult>(response); var output = stringBuilder.ToString(); Assert.Contains("Mixpanel", output); Assert.Contains("Localytics", output); }