Let’s the party begin

Some time ago with my good friend I wrote an application, which uses financial data for Polish equity market. Unfortunatelly, as it comes to most of homemade projects, work on this project was suspended, before the project started to presented some value added. My friend let me to reuse part of this application in the competition Daj się poznać.

At the begining I am going to write about some little problems upon migration of existing project. I copyied project files from existing solution to newly created solution. Then problems occurs.

First of all NuGet compilation problem:

Error 1 This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is \.nuget\NuGet.targets.

One look at the packages folder(where NuGet downloads packages) and all packages were properly downloaded. One little question to „uncle google” gave me the answer from stackoverflow. After removing appropriate lines from *.csproj and repeated the operation on Test project, solution becames properly compile. JUUUUPI 🙂

I changed some class names and then next problem arise. Class name and the same namespace name bode problems, indeed. In this case when creating system under test in the test project there should be used code sth like this:
sut = new NewsService.NewsService(…)
That means there is a need to repeat name. I am not proud of it, but for now I have to leave it in that form.

And finally the last problem. I run unit tests and… FAIL. Auuuu… So it ends, when CI(Continuous Integraion) is not used in the project. Tests are run from time to time, instead of after every little code change. I must put effort to implement apps with TDD.

Problem with unit tests was due to use RhinoMocks IgnoreArguments() method. I also gave method parameters and of course parameters were ignored, a few minutes of life vanished 😉

Problems with app import solved. Keep fingers crossed for evolution of my project in the competition 🙂

Leave a Reply

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>