public void GetProduct_ShouldFail_WhenNoID()
        {
            var context = new TestMachineContextGood();

            context.Machines.Add(GetDemoProduct());

            var controller = new MachinesController(context);
            var result     = controller.GetMachine(2).Result;

            Assert.IsNotNull(result);
            Assert.AreEqual(result.GetType(), typeof(NotFoundResult));
        }
        public void GetProduct_ShouldReturnProductWithSameID()
        {
            var context = new TestMachineContextGood();

            context.Machines.Add(GetDemoProduct());

            var controller = new MachinesController(context);
            var result     = controller.GetMachine(1).Result as OkNegotiatedContentResult <Machine>;

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Content.Id);
        }