Esempio n. 1
0
        public LastFMStatsControllerTests()
        {
            LastFMCredentialsTestingConfiguration testingConfiguration = new LastFMCredentialsTestingConfiguration();
            LastFMCredentials credentials = new LastFMCredentials(testingConfiguration.APIKey, testingConfiguration.SharedSecret);

            _controller = new LastFMStatsController(credentials);
        }
Esempio n. 2
0
        public void LastFMStatsControllerTests_Init_InvalidCredentials()
        {
            // Arrange
            LastFMCredentials credentials = null;

            // Act
            LastFMStatsController controller = new LastFMStatsController(credentials);

            // Assert
            Assert.IsNotNull(controller);
        }
Esempio n. 3
0
        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);
 }