Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }