muojp / ptfluentapi-portable

Portable version of PivotalTracker Fluent API
MIT License
2 stars 1 forks source link

Make this library PCL compliant #1

Open muojp opened 9 years ago

muojp commented 9 years ago

Quick survey result:

We need to beat 24 compile errors before achieving this port.

    ../Repository/FormUpload.cs(44,33): error CS1061: Type `System.Net.WebHeaderCollection' does not contain a definition for `Add' and no extension method `Add' of type `System.Net.WebHeaderCollection' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(46,21): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `AllowAutoRedirect' and no extension method `AllowAutoRedirect' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(48,21): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `KeepAlive' and no extension method `KeepAlive' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(50,21): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `UserAgent' and no extension method `UserAgent' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(52,21): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `UnsafeAuthenticatedConnectionSharing' and no extension method `UnsafeAuthenticatedConnectionSharing' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(54,21): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `ContentLength' and no extension method `ContentLength' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(58,51): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `GetRequestStream' and no extension method `GetRequestStream' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(62,31): error CS1061: Type `System.IO.Stream' does not contain a definition for `Close' and no extension method `Close' of type `System.IO.Stream' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(65,28): error CS1061: Type `System.Net.HttpWebRequest' does not contain a definition for `GetResponse' and no extension method `GetResponse' of type `System.Net.HttpWebRequest' could be found. Are you missing an assembly reference?
    ../Repository/FormUpload.cs(96,32): error CS1061: Type `System.IO.Stream' does not contain a definition for `Close' and no extension method `Close' of type `System.IO.Stream' could be found. Are you missing an assembly reference?
    ../Repository/PivotalProjectRepository.cs(91,64): error CS1061: Type `System.Collections.Generic.List<string>' does not contain a definition for `ForEach' and no extension method `ForEach' of type `System.Collections.Generic.List<string>' could be found. Are you missing an assembly reference?
    ../Repository/PivotalStoryRepository.cs(133,40): error CS1061: Type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Domain.Attachment>' does not contain a definition for `ForEach' and no extension method `ForEach' of type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Domain.Attachment>' could be found. Are you missing an assembly reference?
    ../Repository/PivotalStoryRepository.cs(136,34): error CS1061: Type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Repository.PivotalStoryRepository.StoryNoteXmlResponse>' does not contain a definition for `ForEach' and no extension method `ForEach' of type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Repository.PivotalStoryRepository.StoryNoteXmlResponse>' could be found. Are you missing an assembly reference?
    ../Repository/PivotalStoryRepository.cs(145,34): error CS1061: Type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Domain.Task>' does not contain a definition for `ForEach' and no extension method `ForEach' of type `System.Collections.Generic.List<PivotalTracker.FluentAPI.Domain.Task>' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(58,34): error CS1061: Type `System.Net.WebHeaderCollection' does not contain a definition for `Add' and no extension method `Add' of type `System.Net.WebHeaderCollection' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(59,34): error CS1061: Type `System.Net.WebHeaderCollection' does not contain a definition for `Add' and no extension method `Add' of type `System.Net.WebHeaderCollection' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(75,53): error CS1061: Type `System.Net.WebRequest' does not contain a definition for `GetRequestStream' and no extension method `GetRequestStream' of type `System.Net.WebRequest' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(80,34): error CS1061: Type `System.Net.WebRequest' does not contain a definition for `ContentLength' and no extension method `ContentLength' of type `System.Net.WebRequest' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(84,52): error CS1061: Type `System.Net.WebRequest' does not contain a definition for `GetResponse' and no extension method `GetResponse' of type `System.Net.WebRequest' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(90,25): error CS0103: The name `Console' does not exist in the current context
    ../Repository/PivotalTrackerRepositoryBase.cs(95,28): error CS0234: The type or namespace name `Thread' does not exist in the namespace `System.Threading'. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(161,26): error CS1061: Type `System.Net.WebHeaderCollection' does not contain a definition for `Add' and no extension method `Add' of type `System.Net.WebHeaderCollection' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(165,22): error CS1061: Type `System.Net.WebRequest' does not contain a definition for `GetResponse' and no extension method `GetResponse' of type `System.Net.WebRequest' could be found. Are you missing an assembly reference?
    ../Repository/PivotalTrackerRepositoryBase.cs(178,34): error CS1061: Type `string' does not contain a definition for `Normalize' and no extension method `Normalize' of type `string' could be found. Are you missing an assembly reference?

We need PCL compliant REST API agent library to achieve this.

Candidates:

So, replacing network API access by PortableRest seems great.

muojp commented 9 years ago

Was a longer way than I expected, but managed to make things 80% done. support-PCL branch compiles and 6 tests out of 15 run successfully.

muojp commented 9 years ago

Now stage 1 is completed via #2 and stage 2 w/ full feature tests just started.

muojp commented 8 years ago

Test status

14 ran, 11 succeeded, 3 failed.

Unimplemented parts

muojp commented 8 years ago

16 is a great step forward (no more failing tests).