public void GetComputersByUser_ShouldOnlyReturnComputersOfTheUser()
        {
            var context    = GetDemoContext();
            var controller = new ComputersController(context);

            var result = controller.GetComputers("686990B4-3263-4566-9713-27666E894AF3") as IQueryable <Computer>;

            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Count());
        }
        public void GetComputers_ShouldReturnAllComputers()
        {
            var context    = GetDemoContext();
            var controller = new ComputersController(context);

            var result = controller.GetComputers() as TestComputerDbSet;

            Assert.IsNotNull(result);
            Assert.AreEqual(context.Computers.Local.Count, result.Local.Count);
        }