Enterprise Library Configuration Best Practices

  There is no doubt, we (as Microsoft Consutants) must use entlib for instrumentation purposes, like logging and exception handling. I must to admit that there are some design decisions I don’t like too much, like the high number of assemblies or the verbose configuration mechanism, but this is another story. So if have decided…

0

Start/Stop Sharepoint with one click

Now that I have Sharepoint deployed on my laptop, I need to start/stop several times, so I wrote this simply START/STOP script: net stop SPWriterV4 net stop SPUserCodeV4 net stop SPSearch4 net stop OSearch14 net stop SPAdminV4 net stop SPTraceV4 net stop SPTimerV4 net stop w3svc net stop mssql$sharepoint ==================== net start mssql$sharepoint net start…

1

Test Class Inheritance Revisited

Some years ago I used to use inheritance in my unit test class design, mainly to avoid code duplication. When VS2005 introduced unit tests, this was one of the most requested features.. but with time, it has been forgotten. Today, I was creating some integration tests that called a WCF service, so I was changing…

0

How to connect to TFS through authenticated Web Proxy

Today I was in a customer where the internet access is provided by a WebProxy that requires credentials. For some reason, although VS can navigate, the Team Explorer was not able to connect to our TFS server, because a 407 error (Proxy authentication required) To fix this issue you need a custom proxy module that…

17

Sorprendente Assert

Estoy revisando el código de un componente, y sorprendentemente tiene pruebas unitarias…. ¿y que me encuentro? Assert.IsTrue(1 != 1, "Se ha producido un error La verdad, para escribir esto … mejor me voy a dormir

1

Probando con Visual Studio 2010

Hoy ha sido el workshop de pruebas en Microsoft. A pesar de que el registro se llenó rápidamente y hubo que ampliar, quedaron sitios libres. Ha sido una pena que no me diese tiempo a terminar el ejemplo, asi que además de la presentación os dejo la solución sin terminar y la terminada. Or recuerdo…

6

Clean Build for Visual Studio Solutions

Every time you need to zip a solution, you need to clean up all the folders that will be generated in the next build. If you think that the Build->Clean Menu options does what you think, your are wrong, it only cleans the bin folders, not the obj. To really clean your folders you can…

0

Por que es importante probar el código

Hoy, en el evento de lanzamiento de Visual Studio 2010 en Madrid, he participado en una sesión un poco diferente. En vez de estar en una sala con la gente sentada en sillas, se ha realizado en el hall, con una pantalla LCD y la gente sentada en Puffs, o de pie. En vez de…

4

Workshop de Pruebas con VS2010

  El próximo 29 de Abril voy a participar en un workshop acerca de “Pruebas en el desarrollo de aplicaciones empresariales”. Para registrarse, podeis utilizar este formulario: https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032449518&Culture=es-ES El objetivo, además de convencer de por que las pruebas son importantes, es de dar a conocer el estado del arte de tecnologías y patrones relacionados con…

0

Chaos 2009 reports shows more projects failing…

.. and less successful projects. Almost every presentation about software methodologies starts with a reference of the Chaos Report from the Standish group. But because everytime I saw this report it referes to a 1995 study I have started to do not beleive in the information it shows. However, today I’ve found a new version…

0