public void GetSoftware_ShouldReturnNotFound_WhenInvalidId()
        {
            var controller = new SoftwaresController(new TestLicenseManagerContext());

            var result = controller.GetSoftware(-1, 999);

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(NotFoundResult));
        }
        public void GetSoftware_ShouldReturnSoftwareWithSameId()
        {
            var context = GetDemoContext();
            var item = GetDemoSoftware();
            context.Softwares.Add(item);
            var controller = new SoftwaresController(context);

            var result = controller.GetSoftware(-1, item.SoftwareId) as OkNegotiatedContentResult<Software>;

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Content.SoftwareId, item.SoftwareId);
        }