public void PostMonitor_ShouldAddMonitor()
        {
            var context = new TestAcquisitionContext();
            var controller = new MonitorController(context);
            var mon = new AcquisitionMonitor() { Id = 1, Location = @"C:\Test\Location1" };

            controller.PostMonitor(mon);

            Assert.AreEqual(1, context.Monitors.Count);
        }
        public void GetMonitors_ShoulReturnAllMonitors()
        {
            var context = new TestAcquisitionContext();
            context.Monitors.Add(new AcquisitionMonitor() { Id = 1, Location = @"C:\Test\Location1" });
            context.Monitors.Add(new AcquisitionMonitor() { Id = 2, Location = @"C:\Test\Location2" });
            context.Monitors.Add(new AcquisitionMonitor() { Id = 3, Location = @"C:\Test\Location3" });

            var controller = new MonitorController(context);
            var result = new List<AcquisitionMonitor>(controller.GetMonitors());

            Assert.AreEqual(3, result.Count);
        }