public void GetByName_ReturnsPackage() { mockRedisQuery.Setup(m => m.Get("Dracula")).Returns(new Package { Name = "Dracula" }); var package = controller.GetByName("Dracula"); Assert.Equal("Dracula", package.Name); }
public void GetByName_ReturnsPackage() { mockRedisQuery.Setup(m => m.Get("Dracula")).Returns(new Package { Name = "Dracula" }); var package = controller.GetByName("Dracula"); Assert.Equal("Dracula", package.Name); }