public TestableCuratedPackagesController() { StubCuratedFeedByNameQry .Setup(stub => stub.Execute(It.IsAny <string>(), It.IsAny <bool>())) .Returns(StubCuratedFeed); StubPackageRegistrationByIdQry .Setup(stub => stub.Execute(It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>())) .Returns(StubPackageRegistration); }
public TestableCuratedPackagesController() { StubCuratedFeed.Managers = new[] { new User { Username = "******" } }; StubCuratedFeed.Packages = new[] { new CuratedPackage { PackageRegistration = new PackageRegistration { Id = "aCuratedPackageId" } } }; StubCuratedFeedByNameQry .Setup(stub => stub.Execute(It.IsAny <string>(), It.IsAny <bool>())) .Returns(StubCuratedFeed); }