Пример #1
0
        public LastFMStatsControllerTests()
        {
            LastFMCredentialsTestingConfiguration testingConfiguration = new LastFMCredentialsTestingConfiguration();
            LastFMCredentials credentials = new LastFMCredentials(testingConfiguration.APIKey, testingConfiguration.SharedSecret);

            _controller = new LastFMStatsController(credentials);
        }
Пример #2
0
        public AlbumRepositoryTests()
        {
            LastFMCredentialsTestingConfiguration testingConfiguration = new LastFMCredentialsTestingConfiguration();
            LastFMCredentials credentials = new LastFMCredentials(testingConfiguration.APIKey, testingConfiguration.SharedSecret);
            IMapper           mapper      = new Mapper(new MapperConfiguration(cfg => { cfg.AddProfile <LastFMProfile>(); }));

            _repo = new AlbumRepository(credentials, mapper);
        }
Пример #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);
        }