BoardGameGeekApiClient.Tests.UnitTests.BoardGameGeekClient.GetUserGames_Tests.When_ApiDownload_Throw_Exception.CreateStub C# (CSharp) Method

CreateStub() protected method

protected CreateStub ( ) : IApiDownloadService
return IApiDownloadService
            protected override IApiDownloadService CreateStub()
            {
                var stub = MockRepository.GenerateStub<IApiDownloadService>();
                stub.Stub(s => s.DownloadApiResult(Arg<Uri>.Is.Anything))
                    .Throw(new Exception());
                return stub;
            }
GetUserGames_Tests.When_ApiDownload_Throw_Exception