public LastFMStatsControllerTests() { LastFMCredentialsTestingConfiguration testingConfiguration = new LastFMCredentialsTestingConfiguration(); LastFMCredentials credentials = new LastFMCredentials(testingConfiguration.APIKey, testingConfiguration.SharedSecret); _controller = new LastFMStatsController(credentials); }
public void LastFMStatsControllerTests_Init_InvalidCredentials() { // Arrange LastFMCredentials credentials = null; // Act LastFMStatsController controller = new LastFMStatsController(credentials); // Assert Assert.IsNotNull(controller); }
public void LastFMStatsControllerTests_Init() { // Arrange LastFMCredentialsTestingConfiguration testingConfiguration = new LastFMCredentialsTestingConfiguration(); LastFMCredentials credentials = new LastFMCredentials(testingConfiguration.APIKey, testingConfiguration.SharedSecret); // Act LastFMStatsController controller = new LastFMStatsController(credentials); // Assert Assert.IsNotNull(controller); }
public LastFMStatsService(LastFMCredentials credentials) { _controller = new LastFMStatsController(credentials); }