public void SetUp() { _mockVotingService = MockRepository.GenerateMock<XboxVotingServiceSoap>(); // Can use any API key as it is not actually required in the mock voting service _xboxVotingRepository = new XboxVotingRepository(_mockVotingService,"API_KEY"); }
/// <summary> /// Initialize a new voting repository instance with the provided Xbox Voting /// Service implementation and API key /// </summary> /// <param name="client">Service to utilize</param> /// <param name="apiKey">API key to use for this instance</param> /// <exception cref="ArgumentException">Thrown if the API Key for the service is invalid</exception> public XboxVotingRepository(XboxVotingServiceSoap client,string apiKey) { _xboxVotingServiceClient = client; _apiKey = apiKey; }