Search the web
Sign In
New User? Sign Up
glasgow_altdotnet_usersgroup · Glasogw ALT,NET Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 734 - 763 of 763   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#763 From: "zpyoung4" <zpyoung@...>
Date: Mon Jul 6, 2009 7:23 pm
Subject: VAN: Web Development using Castle with Ryan Svihla
zpyoung4
Offline Offline
Send Email Send Email
 
Virtual ALT.NET (VAN) is the online gathering place of the ALT.NET community.
Through conversations, presentations, pair programming and dojos, we strive to
improve, explore, and challenge the way we create software. Using net
conferencing technology such as Skype and LiveMeeting, we hold regular meetings,
open to anyone, usually taking the form of a presentation or an Open Space
Technology-style conversation.

Please see the Calendar (http://snipr.com/m8ia2) to find a VAN group that meets
at a time convenient to you, and feel welcome to join a meeting. Past sessions
can be found on the Recording (http://snipr.com/m8ie1) page.

To stay informed about VAN activities, you can subscribe to the Virtual ALT.NET
Google Group (http://snipr.com/m8ih0) and follow the Virtual ALT.NET blog
(http://snipr.com/m8ihv).

Ryan Svihla has been working as a C# developer Farm Bureau Bank in San Antonio
since September 2007. Before that he worked as  a Consultant in Lincoln, NE for
3 years, where he had working experience with Php, some Perl, Python and of
course C#.  Attempting Agile since early 2008 as an eager student with a focus
on making programming more useful and relevant for the end user.

Have a look at the first popular MVC  .Net based web framework. Also will be
covering persistence with ActiveRecord, and view templates using Brail.  Bonus,
will demo a plug-in framework for building CMS like applications.

Central Daylight Time

Start Time: Web, July 8, 2009 8:00 PM UTC/GMT -5 hours

End Time: Web, July 8, 2009 10:00 PM UTC/GMT -5 hours

Attendee URL: http://snipr.com/virtualaltnet (Live Meeting)

#762 From: "zpyoung4" <zpyoung@...>
Date: Mon Apr 20, 2009 3:38 am
Subject: S#harp Architecture on VAN
zpyoung4
Offline Offline
Send Email Send Email
 
Speaker Bio for this week. Who is and what makes this Billy McCafferty guy tick?
Well he is a long time developer and a hopeless romantic when it comes
to writing beautiful software. Billy currently leads a double life
between helping to run a small training and consulting company known
as Codai (which will be getting a new website very very soon) and
filling the role of lead developer and architect with Parsons
Brinckerhoff. After Billy gets his life back – which should be after
the release of S#arp Architecture 1.0 – expect to see him soon at
ALT.NET and other development conferences.

He will be demonstrating the latest cut of S#harp Architecture 1.0
with a 45-50 minute non-PPT presentation.

Bring your opinions and attention. Questions and Answer will be served
also. The drinks as usual are up to the participants.

Should be a fun evening. See you all there.

Meeting details.

Where and When
Start Time: Wednesday, April 22, 2009 9:00 PM GMT/UTC - 5:00 (CDT)
End Time: Wednesday, April 22, 2009 12:00 PM GMT/UTC - 5:00 (CDT)
Attendee URL:http://snipr.com/virtualaltnet  (Live Meeting)

#761 From: Paul Cowan <dagda1@...>
Date: Mon Mar 30, 2009 8:03 pm
Subject: Re: Glasgow Alt.Net
dagda1970
Offline Offline
Send Email Send Email
 
Hi Gavin,

We moved groups to a more unified Scotalt.net here:

http://groups.google.com/group/scotaltnet/

I believe there is a meeting next week I think.

Can anyone let me know if this is correct and if so, why have we not advertised here?

Cheers

Paul



2009/3/30 Colin Mackay <colin@...>

It is quite active I think. There is a good ALT.NET community as a whole in the UK.

 

I run Scottish Developers (another user group which tries to cater to all tastes) and we’ve had a lot of success recently when running ALT.NET topics at our events – We had some of our largest turn outs for those.

 

Regards,

Colin.

 

 

Colin Angus Mackay B.Sc. MBCS MVP MIAP

Chairman, Scottish Developers

 

banner3

 

From: glasgow_altdotnet_usersgroup@yahoogroups.com [mailto:glasgow_altdotnet_usersgroup@yahoogroups.com] On Behalf Of gavinmclellan@...
Sent: 30 March 2009 20:22
To: glasgow_altdotnet_usersgroup@yahoogroups.com
Subject: [glasgow_altdotnet_usersgroup] Glasgow Alt.Net

 

Hello,

How active is Glasgow Alt.Net at present?

The reason I ask is that I'm originally from the UK and having been working in Canada for the past 5 years - the last two in a Alt.Net fashion - learning my TDD-DDD craft with JP Boodhoo. In a few weeks time I'm returning to Glasgow to live and work and thought it would be great to get in touch with a group of alt.neters.



#760 From: "Colin Mackay" <colin@...>
Date: Mon Mar 30, 2009 7:46 pm
Subject: RE: Glasgow Alt.Net
colmac_2003
Offline Offline
Send Email Send Email
 

It is quite active I think. There is a good ALT.NET community as a whole in the UK.

 

I run Scottish Developers (another user group which tries to cater to all tastes) and we’ve had a lot of success recently when running ALT.NET topics at our events – We had some of our largest turn outs for those.

 

Regards,

Colin.

 

 

Colin Angus Mackay B.Sc. MBCS MVP MIAP

Chairman, Scottish Developers

 

banner3

 

From: glasgow_altdotnet_usersgroup@yahoogroups.com [mailto:glasgow_altdotnet_usersgroup@yahoogroups.com] On Behalf Of gavinmclellan@...
Sent: 30 March 2009 20:22
To: glasgow_altdotnet_usersgroup@yahoogroups.com
Subject: [glasgow_altdotnet_usersgroup] Glasgow Alt.Net

 

Hello,

How active is Glasgow Alt.Net at present?

The reason I ask is that I'm originally from the UK and having been working in Canada for the past 5 years - the last two in a Alt.Net fashion - learning my TDD-DDD craft with JP Boodhoo. In a few weeks time I'm returning to Glasgow to live and work and thought it would be great to get in touch with a group of alt.neters.


#759 From: "gavinmclellan@..." <gavinmclellan@...>
Date: Mon Mar 30, 2009 7:22 pm
Subject: Glasgow Alt.Net
gavinmclella...
Offline Offline
Send Email Send Email
 
Hello,

How active is Glasgow Alt.Net at present?

The reason I ask is that I'm originally from the UK and having been working in
Canada for the past 5 years - the last two in a Alt.Net fashion - learning my
TDD-DDD craft with JP Boodhoo. In a few weeks time I'm returning to Glasgow to
live and work and thought it would be great to get in touch with a group of
alt.neters.

#758 From: Zachariah Young <zpyoung@...>
Date: Mon Feb 16, 2009 4:23 am
Subject: VAN Meeting: NHibernate Profiler with Oren Eini on 2/18/09
zpyoung4
Offline Offline
Send Email Send Email
 
This week Oren Eini will be talking about NHibernate Profiler.

Bio:

My name in Oren Eini, but I'm usually goes by the Alias Ayende Rahien.
The reasons are mostly lost in the mists of time. ;-)

I am an experienced developer / architect, focusing on the CLR and
building business application and developer productivity frameworks
and tools.

I am an active member of several open source projects (NHibernate,
Castle) and the founder of several others (Rhino Mocks, NHibernate
Query Analyzer, Rhino Commons, etc)

Topic:

NHibernate Profiler is now finally available for Public Beta. It is a
real-time visual debugger allowing a development team to gain valuable
insight and perspective into their practice of using NHibernate. The
product is architected with input coming from many top industry
leaders within the NHibernate community. Alerts are presented in a
concise code-review manner indicating patterns of misuse by your
application. To streamline your efforts to correct the misuse, we
provide links to the problematic code section that triggered the alert

Time:
Start Time: Wednesday, Feb 18, 2009 9:00 PM GMT -6 (CST)
End Time: Wednesday, Feb 18, 2009 12:00 PM GMT -6 (CST)
Attendee URL: http://snipr.com/virtualaltnet (Live Meeting)

If you have not heard about VAN.  Please read my blog post Intro to VAN.

http://www.zachariahyoung.com/zy/post/2009/01/Introduction-to-Virtual-ALTNET.asp\
x


--
Zachariah Young
President of NW Arkansas .Net User Group
http://zachariahyoung.com
zpyoung@...

#757 From: "rossmclarnon@..." <rossmclarnon@...>
Date: Thu Jan 8, 2009 12:47 pm
Subject: Freelance software developer wanted
rossmclarnon...
Offline Offline
Send Email Send Email
 
I am the IT manager for a digital media company based in Glasgow.  I am
looking for a freelance software developer to work on a number of
software development projects to help improve internal business
resources.

A working knowledge of C#, SQL, Crystal Reporting and ASP.NET is
essential and applicants will be expected to provide examples of work
and suitable references.

Please send a copy of your CV to rossmclarnonatbtinternetdotcom
including details of your rates.  As the developer will be expected to
regularly meet in Glasgow, overseas CV's will not be considered.

No agencies please.

#756 From: "Paul Cowan" <dagda1@...>
Date: Mon Nov 3, 2008 12:53 pm
Subject: Re: REMINDER: ALT.NET Edinburgh Drinks - Tonight 7:30
dagda1970
Offline Offline
Send Email Send Email
 
Has any progress been made with respect to putting the requirements into mingle?

2008/11/3 Chris Canal <chris.canal@...>
Just a quick reminder about tonights ALT.NET Drinks in Edinburgh.  It's at 7:30pm at the Rutland and more information can be found here: http://ukdotnet.ning.com/events/event/show?id=2391280:Event:225 and http://tech.groups.yahoo.com/group/glasgow_altdotnet_usersgroup/message/715

Hope to see ya'll there.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scotalt.net" group.
To post to this group, send email to scotaltnet@googlegroups.com
To unsubscribe from this group, send email to scotaltnet+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/scotaltnet?hl=en
-~----------~----~----~----~------~----~------~--~---



#755 From: "Chris Canal" <dhtmlgod@...>
Date: Mon Nov 3, 2008 12:50 pm
Subject: REMINDER: ALT.NET Edinburgh Drinks - Tonight 7:30
cr_canal
Offline Offline
Send Email Send Email
 
Just a quick reminder about tonights ALT.NET Drinks in Edinburgh.  It's at 7:30pm at the Rutland and more information can be found here: http://ukdotnet.ning.com/events/event/show?id=2391280:Event:225 and http://tech.groups.yahoo.com/group/glasgow_altdotnet_usersgroup/message/715

Hope to see ya'll there.


#754 From: Paul Cowan <dagda1@...>
Date: Fri Oct 24, 2008 9:56 am
Subject: So long and thanks for all the fish
dagda1970
Offline Offline
Send Email Send Email
 
Ladies and gentlemen,
 
This group has probably served is purpose as a start.
 
Onwards and upwards.
 
I recommend everyone here should focus attention to the Scot (I am Irish) Alt.Net site.
 
Dave Lawton has done some stirling work in getting a more unified base.
 
The best thing is the clash of "the weedge" and the guys with there castle on the 3rd of November.
 
Should be an interesting conversation.
 
All attentions will be focused here
 
http://groups.google.com/group/scotaltnet
 
The general announcements are here:
 
http://www.scotalt.net/
 
I personally have selfish reasons for this working as in I want to work in enviroments and work with people who understand the concepts.
 
We owe it to ourselves to promote the concepts if we actually do believe in them!!!

dagda1@...


For the best free wallpapers from MSN Click here!

#753 From: "Craig Nicol" <craig.nicol@...>
Date: Thu Oct 23, 2008 3:44 pm
Subject: Re: Re: Meeting reminder
thecrog
Offline Offline
Send Email Send Email
 
He's the alt.alt.net group ;-)

See you all at 7.

C

On Thu, Oct 23, 2008 at 13:29, John Kane <john.kane84@...> wrote:
Splitter
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
<dagda1@...> wrote:
>
>
> Actually I was just thinking,
> I'm not even Scottish.Would it be OK if I attended?If not, I will be
the one with the sign saying "Belfast ALT.NET"dagda1@...
>
>
>
> To: glasgow_altdotnet_usersgroup@...: dhtmlgod@...: Thu, 23 Oct 2008
13:00:12 +0100Subject: Re: [glasgow_altdotnet_usersgroup] Meeting reminder
>
>
>
>
> "I will be there to add some much needed glamour and sex appeal to
the group."My coffee just came out of my nose and it was not pleasant,
thanks for that!I'll see ya'll there.
> 2008/10/23 Paul Cowan <dagda1@...>
>
>
>
>
>
> I could not book a table unfortunately.Something to do with it being
Thursday night so maybe a sign might be in order.I personally how ugly
you all look so I should recognise you all.I will be there to add some
much needed glamour and sex appeal to the group.dagda1@...
>
> To: glasgow_altdotnet_usersgroup@...: david@...: Thu, 23 Oct 2008
12:11:46 +0100Subject: [glasgow_altdotnet_usersgroup] Meeting reminder
>
>
>
> Just a little reminder that we are meeting tonight at 7pm in Waxy
O'Conners (Next to Queen Street Station)
>
> Be there or be not
there!-------------------------------------------------------------------------------------------------------------------"Alt.net
is the Yì Jīng of software development" - Dave the Ninja,
http://www.scotalt.net-------------------------------------------------------------------------------------------------------------------
>
>
> Get the best wallpapers on the Web â€" FREE. Click here! -- "Any
fool can write code that a computer can understand. Good programmers
write code that humans can understand."-Martin Fowler et al,
Refactoring: Improving the Design of Existing Code
>
>
>
>
>
>
> _________________________________________________________________
> Win an Xbox 360 or £200 Top Shop Vouchers
> http://clk.atdmt.com/GBL/go/115454062/direct/01/
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/glasgow_altdotnet_usersgroup/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/glasgow_altdotnet_usersgroup/join
   (Yahoo! ID required)

<*> To change settings via email:
   mailto:glasgow_altdotnet_usersgroup-digest@yahoogroups.com
   mailto:glasgow_altdotnet_usersgroup-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   glasgow_altdotnet_usersgroup-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




--
skype: callto:craignicol     sip:craignicol@...    http://twitter.com/craignicol     http://craignicol.wordpress.com

#752 From: "John Kane" <john.kane84@...>
Date: Thu Oct 23, 2008 12:29 pm
Subject: Re: Meeting reminder
johnkane84
Offline Offline
Send Email Send Email
 
Splitter
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
<dagda1@...> wrote:
>
>
> Actually I was just thinking,
> I'm not even Scottish.Would it be OK if I attended?If not, I will be
the one with the sign saying "Belfast ALT.NET"dagda1@...
>
>
>
> To: glasgow_altdotnet_usersgroup@...: dhtmlgod@...: Thu, 23 Oct 2008
13:00:12 +0100Subject: Re: [glasgow_altdotnet_usersgroup] Meeting reminder
>
>
>
>
> "I will be there to add some much needed glamour and sex appeal to
the group."My coffee just came out of my nose and it was not pleasant,
thanks for that!I'll see ya'll there.
> 2008/10/23 Paul Cowan <dagda1@...>
>
>
>
>
>
> I could not book a table unfortunately.Something to do with it being
Thursday night so maybe a sign might be in order.I personally how ugly
you all look so I should recognise you all.I will be there to add some
much needed glamour and sex appeal to the group.dagda1@...
>
> To: glasgow_altdotnet_usersgroup@...: david@...: Thu, 23 Oct 2008
12:11:46 +0100Subject: [glasgow_altdotnet_usersgroup] Meeting reminder
>
>
>
> Just a little reminder that we are meeting tonight at 7pm in Waxy
O'Conners (Next to Queen Street Station)
>
> Be there or be not
there!--------------------------------------------------------------------------\
-----------------------------------------"Alt.net
is the Yì Jīng of software development" - Dave the Ninja,
http://www.scotalt.net----------------------------------------------------------\
---------------------------------------------------------
>
>
> Get the best wallpapers on the Web â€" FREE. Click here! -- "Any
fool can write code that a computer can understand. Good programmers
write code that humans can understand."-Martin Fowler et al,
Refactoring: Improving the Design of Existing Code
>
>
>
>
>
>
> _________________________________________________________________
> Win an Xbox 360 or £200 Top Shop Vouchers
> http://clk.atdmt.com/GBL/go/115454062/direct/01/
>

#751 From: Paul Cowan <dagda1@...>
Date: Thu Oct 23, 2008 12:02 pm
Subject: RE: Meeting reminder
dagda1970
Offline Offline
Send Email Send Email
 
Actually I was just thinking,

I'm not even Scottish.

Would it be OK if I attended?

If not, I will be the one with the sign saying "Belfast ALT.NET"

dagda1@...




To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: dhtmlgod@...
Date: Thu, 23 Oct 2008 13:00:12 +0100
Subject: Re: [glasgow_altdotnet_usersgroup] Meeting reminder


"I will be there to add some much needed glamour and sex appeal to the group."

My coffee just came out of my nose and it was not pleasant, thanks for that!

I'll see ya'll there.



2008/10/23 Paul Cowan <dagda1@hotmail.com>

I could not book a table unfortunately.

Something to do with it being Thursday night so maybe a sign might be in order.

I personally how ugly you all look so I should recognise you all.

I will be there to add some much needed glamour and sex appeal to the group.

dagda1@hotmail.com





To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: david@davetheninja.net
Date: Thu, 23 Oct 2008 12:11:46 +0100
Subject: [glasgow_altdotnet_usersgroup] Meeting reminder


Just a little reminder that we are meeting tonight at 7pm in Waxy O'Conners (Next to Queen Street Station)

Be there or be not there!


-------------------------------------------------------------------------------------------------------------------

"Alt.net is the Yì Jīng of software development"
- Dave the Ninja, http://www.scotalt.net

-------------------------------------------------------------------------------------------------------------------




Get the best wallpapers on the Web – FREE. Click here!



--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code



Read amazing stories to your kids on Messenger Try it Now!

#750 From: "Chris Canal" <dhtmlgod@...>
Date: Thu Oct 23, 2008 12:00 pm
Subject: Re: Meeting reminder
cr_canal
Offline Offline
Send Email Send Email
 
"I will be there to add some much needed glamour and sex appeal to the group."

My coffee just came out of my nose and it was not pleasant, thanks for that!

I'll see ya'll there.



2008/10/23 Paul Cowan <dagda1@...>

I could not book a table unfortunately.

Something to do with it being Thursday night so maybe a sign might be in order.

I personally how ugly you all look so I should recognise you all.

I will be there to add some much needed glamour and sex appeal to the group.

dagda1@...




To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: david@...
Date: Thu, 23 Oct 2008 12:11:46 +0100
Subject: [glasgow_altdotnet_usersgroup] Meeting reminder


Just a little reminder that we are meeting tonight at 7pm in Waxy O'Conners (Next to Queen Street Station)

Be there or be not there!


-------------------------------------------------------------------------------------------------------------------

"Alt.net is the Y¨¬ J¨©ng of software development"
- Dave the Ninja, http://www.scotalt.net

-------------------------------------------------------------------------------------------------------------------




Get the best wallpapers on the Web ¨C FREE. Click here!



--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

#749 From: Paul Cowan <dagda1@...>
Date: Thu Oct 23, 2008 11:36 am
Subject: RE: Meeting reminder
dagda1970
Offline Offline
Send Email Send Email
 
I could not book a table unfortunately.

Something to do with it being Thursday night so maybe a sign might be in order.

I personally how ugly you all look so I should recognise you all.

I will be there to add some much needed glamour and sex appeal to the group.

dagda1@...




To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: david@...
Date: Thu, 23 Oct 2008 12:11:46 +0100
Subject: [glasgow_altdotnet_usersgroup] Meeting reminder


Just a little reminder that we are meeting tonight at 7pm in Waxy O'Conners (Next to Queen Street Station)

Be there or be not there!


-------------------------------------------------------------------------------------------------------------------

"Alt.net is the Y¨¬ J¨©ng of software development"
- Dave the Ninja, http://www.scotalt.net

-------------------------------------------------------------------------------------------------------------------




Get the best wallpapers on the Web ¨C FREE. Click here!

#748 From: "David Lawton" <david@...>
Date: Thu Oct 23, 2008 11:11 am
Subject: Meeting reminder
davetheninja...
Offline Offline
Send Email Send Email
 
Just a little reminder that we are meeting tonight at 7pm in Waxy O'Conners (Next to Queen Street Station)

Be there or be not there!


-------------------------------------------------------------------------------------------------------------------

"Alt.net is the Y¨¬ J¨©ng of software development"
- Dave the Ninja, http://www.scotalt.net

-------------------------------------------------------------------------------------------------------------------

#747 From: Paul Cowan <dagda1@...>
Date: Wed Oct 22, 2008 8:09 pm
Subject: Features used
dagda1970
Offline Offline
Send Email Send Email
 
This is quite interesting:

http://www.hanselman.com/blog/SurveyRESULTSWhatNETFrameworkFeaturesDoYouUse.aspx

An alt.net survey would be very cool:

The obvious choices being NHibernate, JQuery, Castle, Rhino etc.
 
The sort of thing our new iniative could capture.


dagda1@...


For the best free wallpapers from MSN Click here!

#746 From: "Colin Angus Mackay" <colin@...>
Date: Wed Oct 22, 2008 9:53 am
Subject: DDD7 registration open
colmac_2003
Offline Offline
Send Email Send Email
 
#745 From: "Colin Jack" <colin.jack@...>
Date: Wed Oct 22, 2008 8:39 am
Subject: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
colin.jack
Offline Offline
Send Email Send Email
 
Definitely agree, great analogy.

--- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
<dagda1@...> wrote:
>
>
> >> it its the section on Test Doubles that you'll want to look at.
>
> Amen to that.The analogy of the stunt double is one of the things
that finally enabled me to write better tests.I always write my own
test doubles.  Is it possible to create through a mocking
framework?Everyone has there own aha moment.The moment it clicked that
I should absolutely start by writing a test that fails and then  make
it pass was when I was sold on the whole thing.
> I try and start every bug with the input that caused the bug and
every new functionality with a good assertion that it should
pass.dagda1@...
>
>
>
> To: glasgow_altdotnet_usersgroup@...: colin.jack@...: Wed, 22 Oct
2008 07:52:50 +0000Subject: [glasgow_altdotnet_usersgroup] Re: TDD,
Mocks, Stubs, IoC, DI, getting it straight.
>
>
>
>
> >> Thank you Colin for the book recommendation, it has been sitting
in my > amazon basket for a while now. Got a few others to read
first.> I know that feeling! :) When you do buy it its the section on
TestDoubles that you'll want to look at.
>
>
>
>
>
> _________________________________________________________________
> See the most popular videos on the web
> http://clk.atdmt.com/GBL/go/115454061/direct/01/
>

#744 From: Paul Cowan <dagda1@...>
Date: Wed Oct 22, 2008 8:09 am
Subject: RE: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
dagda1970
Offline Offline
Send Email Send Email
 
>> it its the section on Test Doubles that you'll want to look at.
 
Amen to that.

The analogy of the stunt double is one of the things that finally enabled me to write better tests.

I always write my own test doubles.  Is it possible to create through a mocking framework?

Everyone has there own aha moment.

The moment it clicked that I should absolutely start by writing a test that fails and then  make it pass was when I was sold on the whole thing.

I try and start every bug with the input that caused the bug and every new functionality with a good assertion that it should pass.

dagda1@...




To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: colin.jack@...
Date: Wed, 22 Oct 2008 07:52:50 +0000
Subject: [glasgow_altdotnet_usersgroup] Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.


>
> Thank you Colin for the book recommendation, it has been sitting in my
> amazon basket for a while now. Got a few others to read first.
>

I know that feeling! :) When you do buy it its the section on Test
Doubles that you'll want to look at.




For the best free wallpapers from MSN Click here!

#743 From: "Colin Jack" <colin.jack@...>
Date: Wed Oct 22, 2008 7:52 am
Subject: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
colin.jack
Offline Offline
Send Email Send Email
 
>
> Thank you Colin for the book recommendation, it has been sitting in my
> amazon basket for a while now. Got a few others to read first.
>

I know that feeling! :) When you do buy it its the section on Test
Doubles that you'll want to look at.

#742 From: "Colin Jack" <colin.jack@...>
Date: Wed Oct 22, 2008 7:51 am
Subject: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
colin.jack
Offline Offline
Send Email Send Email
 
I gave Pex a shot a while back and it did some v. odd things, seemed
inclined to change the SUT with Pex specific magic when I told it to
resolve errors. Definitely want to give it another shot though, but
not what I'd expected.

--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "dsmyth2001"
<derek.smyth@...> wrote:
>
> OK so yous didn't mock me (pun intended) for posting that so I must
> have understood what I have been reading. Stubs did seem easier to
> apply but an understanding of mocks wouldn't hurt. Thanks for
> replying, I'll take your advice on board.
>
> Actually, just for interest, came across something called Pex. It's
> an MS thing but basically it autogenerates your unit tests for you
> through paramaters and I quote....
>
> "...adding parameters (to unit tests) we turn a closed unit test into
> a universally quantified conditional axiom."
>
> In English that means if you have three branches in a method then you
> write one unit test and Pex works out the values necessary to visit
> each branch. What I read suggested it should be used along side
> regular test frameworks.
>
> http://research.microsoft.com/projects/pex/
>
> There is an article here if your wanting to know more...
> http://research.microsoft.com/projects/pex/articles/pextutorial.pdf
>
> I don't know, just sharing the research.
>
>
>
> --- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Chris Canal"
> <dhtmlgod@> wrote:
> >
> > I don't use any mocks anymore, instead I use stubs. In the tests
> that are
> > concerned with the interaction between the dependency and
> method/system
> > under test I will try and assert on the return.  If this isn't
> possible, say
> > for a Save/UPdate call, I will then use the AssertWasCalled
> extension
> > method.
> >
> > I would use a Stub over a Mock in every given situation.  So far
> anyway.  I
> > have been down the road of using Strict Mocks, and it was a very
> painful
> > experience.
> >
> > On Mon, Oct 20, 2008 at 8:51 PM, Paul Cowan <dagda1@> wrote:
> >
> > >    I only really have experience of Rhino.Mocks.
> > >
> > > One of the problems of mocking is we have so many names for
> similar things.
> > >
> > > Since the advent of Rhino.Mocks 3.5 and indeed the AAA syntax
> over the
> > > record and playback model, I very rarely if ever use mocks.
> > >
> > > I would want to use mocks if I want to test that a mocked method
> is called.
> > >
> > > I use Stubs to control the input and output of data into the
> system under
> > > test.
> > >
> > > You can confusingly assert that stubs were called.
> > >
> > > IMO mocks lead to more brittle tests.
> > >
> > > This might help to clear it up.
> > >
> > > http://ayende.com/wiki/Rhino%20Mocks%20-%20Stubs.ashx
> > >
> > > Paul
> > >
> > > dagda1@
> > >
> > >
> > > ------------------------------
> > >
> > > To: glasgow_altdotnet_usersgroup@yahoogroups.com
> > > From: derek.smyth@
> > > Date: Mon, 20 Oct 2008 19:41:53 +0000
> > > Subject: [glasgow_altdotnet_usersgroup] TDD, Mocks, Stubs, IoC,
> DI, getting
> > > it straight.
> > >
> > >
> > >   Hi folks,
> > >
> > > May I ask, have I got this right....
> > >
> > > TDD is based on writing tests before you write your code. The test
> > > initially fails and then the code is written to pass the tests.
> > >
> > > The code written might have dependencies to resources (external to
> > > the application) and dependencies to other classes that haven't
> been
> > > written yet.
> > >
> > > To get around that for testing purposes mocks and stubs are
> created.
> > > Dependency injection is used to 'fill in the gaps' for the test
> cases
> > > for the missing dependencies of the class thats being tested.
> > >
> > > Doing it that way means when the proper 'dependent' classes are
> > > developed you can add them in to the application very easily
> without
> > > effecting the test cases.
> > >
> > > Stubs are used in place of classes that haven't been developed yet
> > > and which access external resources. They are normally used to
> > > validate state. IsNameValid, etc...
> > >
> > > While Mocks are used to test behaviour of the class to ensure it
> > > calls the correct methods of the 'soon to be developed' class
> > > dependencies (of the class being tested).
> > >
> > > *phew*
> > >
> > > I'm still not completely sure of when you would create a stub and
> > > when you would create a mock? Or whether it matters if you decide
> to
> > > develop one over the other. I read that mocks are behaviour based
> and
> > > stubs are state based, is that correct? Doesn't correct state
> imply
> > > correct behaviour? and vice versa. Would you need to test for
> both,
> > > is it just safer to do so?
> > >
> > > It's all theory at the moment and it's theory pulled from a
> number of
> > > sources. If anyone could tell me if I'm on the right track then
> I'd
> > > appreciate it.
> > >
> > >
> > >
> > > ------------------------------
> > > Read amazing stories to your kids on Messenger Try it Now!
> <http://clk.atdmt.com/GBL/go/115454060/direct/01/>
> > >
> > >
> >
> >
> >
> > --
> > "Any fool can write code that a computer can understand. Good
> programmers
> > write code that humans can understand."
> > -Martin Fowler et al, Refactoring: Improving the Design of Existing
> Code
> >
>

#741 From: "dsmyth2001" <derek.smyth@...>
Date: Tue Oct 21, 2008 8:55 pm
Subject: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
dsmyth2001
Offline Offline
Send Email Send Email
 
Thank you Colin for the book recommendation, it has been sitting in my
amazon basket for a while now. Got a few others to read first.


--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Colin Jack"
<colin.jack@...> wrote:
>
> > I'm still not completely sure of when you would create a stub and
> > when you would create a mock? Or whether it matters if you decide
to
> > develop one over the other. I read that mocks are behaviour based
and
> > stubs are state based, is that correct? Doesn't correct state imply
> > correct behaviour? and vice versa. Would you need to test for both,
> > is it just safer to do so?
>
> I'd recommend XUnit Test Patterns and Jimmy Bogard also has some blog
> entries on it.
>
> If you want to hear the pro-mocking view I'd see mockobjects.com or
> the document "Mock Roles, Not Objects" which has a lot of value.
>

#740 From: "dsmyth2001" <derek.smyth@...>
Date: Tue Oct 21, 2008 8:30 pm
Subject: Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.
dsmyth2001
Offline Offline
Send Email Send Email
 
OK so yous didn't mock me (pun intended) for posting that so I must
have understood what I have been reading. Stubs did seem easier to
apply but an understanding of mocks wouldn't hurt. Thanks for
replying, I'll take your advice on board.

Actually, just for interest, came across something called Pex. It's
an MS thing but basically it autogenerates your unit tests for you
through paramaters and I quote....

"...adding parameters (to unit tests) we turn a closed unit test into
a universally quantified conditional axiom."

In English that means if you have three branches in a method then you
write one unit test and Pex works out the values necessary to visit
each branch. What I read suggested it should be used along side
regular test frameworks.

http://research.microsoft.com/projects/pex/

There is an article here if your wanting to know more...
http://research.microsoft.com/projects/pex/articles/pextutorial.pdf

I don't know, just sharing the research.



--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Chris Canal"
<dhtmlgod@...> wrote:
>
> I don't use any mocks anymore, instead I use stubs. In the tests
that are
> concerned with the interaction between the dependency and
method/system
> under test I will try and assert on the return.  If this isn't
possible, say
> for a Save/UPdate call, I will then use the AssertWasCalled
extension
> method.
>
> I would use a Stub over a Mock in every given situation.  So far
anyway.  I
> have been down the road of using Strict Mocks, and it was a very
painful
> experience.
>
> On Mon, Oct 20, 2008 at 8:51 PM, Paul Cowan <dagda1@...> wrote:
>
> >    I only really have experience of Rhino.Mocks.
> >
> > One of the problems of mocking is we have so many names for
similar things.
> >
> > Since the advent of Rhino.Mocks 3.5 and indeed the AAA syntax
over the
> > record and playback model, I very rarely if ever use mocks.
> >
> > I would want to use mocks if I want to test that a mocked method
is called.
> >
> > I use Stubs to control the input and output of data into the
system under
> > test.
> >
> > You can confusingly assert that stubs were called.
> >
> > IMO mocks lead to more brittle tests.
> >
> > This might help to clear it up.
> >
> > http://ayende.com/wiki/Rhino%20Mocks%20-%20Stubs.ashx
> >
> > Paul
> >
> > dagda1@...
> >
> >
> > ------------------------------
> >
> > To: glasgow_altdotnet_usersgroup@yahoogroups.com
> > From: derek.smyth@...
> > Date: Mon, 20 Oct 2008 19:41:53 +0000
> > Subject: [glasgow_altdotnet_usersgroup] TDD, Mocks, Stubs, IoC,
DI, getting
> > it straight.
> >
> >
> >   Hi folks,
> >
> > May I ask, have I got this right....
> >
> > TDD is based on writing tests before you write your code. The test
> > initially fails and then the code is written to pass the tests.
> >
> > The code written might have dependencies to resources (external to
> > the application) and dependencies to other classes that haven't
been
> > written yet.
> >
> > To get around that for testing purposes mocks and stubs are
created.
> > Dependency injection is used to 'fill in the gaps' for the test
cases
> > for the missing dependencies of the class thats being tested.
> >
> > Doing it that way means when the proper 'dependent' classes are
> > developed you can add them in to the application very easily
without
> > effecting the test cases.
> >
> > Stubs are used in place of classes that haven't been developed yet
> > and which access external resources. They are normally used to
> > validate state. IsNameValid, etc...
> >
> > While Mocks are used to test behaviour of the class to ensure it
> > calls the correct methods of the 'soon to be developed' class
> > dependencies (of the class being tested).
> >
> > *phew*
> >
> > I'm still not completely sure of when you would create a stub and
> > when you would create a mock? Or whether it matters if you decide
to
> > develop one over the other. I read that mocks are behaviour based
and
> > stubs are state based, is that correct? Doesn't correct state
imply
> > correct behaviour? and vice versa. Would you need to test for
both,
> > is it just safer to do so?
> >
> > It's all theory at the moment and it's theory pulled from a
number of
> > sources. If anyone could tell me if I'm on the right track then
I'd
> > appreciate it.
> >
> >
> >
> > ------------------------------
> > Read amazing stories to your kids on Messenger Try it Now!
<http://clk.atdmt.com/GBL/go/115454060/direct/01/>
> >
> >
>
>
>
> --
> "Any fool can write code that a computer can understand. Good
programmers
> write code that humans can understand."
> -Martin Fowler et al, Refactoring: Improving the Design of Existing
Code
>

#739 From: "dsmyth2001" <derek.smyth@...>
Date: Tue Oct 21, 2008 8:20 pm
Subject: Re: alt.net & programming blogs
dsmyth2001
Offline Offline
Send Email Send Email
 
So what your saying Ninja Dave is to understand ALT.NET the
grasshopper must first become ALT.NET? Unlearn you must hmmmm if
ALT.NET you wish to become?   :)

Actually that article...

"Many developers would be happy to use Object/Relational Mapping and
TDD if they just knew where to start. Likewise, folks already
practicing these techniques want to get better by interacting with
other practitioners. My chief hope for the ALT.NET movement is that
it creates a community that assists both groups, helping them all
become strong developers. "

Thats spot on, I think many people would use these very useful
technologies, ideas, approaches, if there was some way to know they
were there. Other people just don't care.



--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "David Lawton"
<david@...> wrote:
>
> I was being philosophical Chris :-) it doesn't happen often!
>
> 2008/10/20 Chris Canal <dhtmlgod@...>
>
> >   http://msdn.microsoft.com/en-us/magazine/cc337902.aspx
> >
> > :o)
> >
> > 2008/10/20 David Lawton <david@...>
> >
> >>   Personally, I would not class a tool or any "thing" as Alt.net.
> >> To me alt.net is a way of life, a mental state if you will, not
tagged to
> >> any set physical things.
> >>
> >> I/you/anyone can apply alt.net to any walk of life, like Y¨¬
J¨©ng (I Ching
> >> http://en.wikipedia.org/wiki/I_Ching).
> >>
> >> Ninja
> >>
> >>
> >> -----------------------------------------------------------------
--------------------------------------------------
> >>
> >> "Alt.net is the Y¨¬ J¨©ng of software development"
> >> - Dave the Ninja, http://www.scotalt.net
> >>
> >>
> >> -----------------------------------------------------------------
--------------------------------------------------
> >>
> >> 2008/10/20 dsmyth2001 <derek.smyth@...>
> >>
> >>   That would be good!
> >>>
> >>> I've been talking to some American developers I know and they
have
> >>> never heard of ALT.NET. They have heard of the tools but never
knew
> >>> they were under the ALT.NET banner.
> >>>
> >>> Their first port of call is the MSDN, or books written by
people who
> >>> go to MSDN, there is some information there but it's not tagged
as
> >>> ALT.NET.
> >>>
> >>> --- In
glasgow_altdotnet_usersgroup@yahoogroups.com<glasgow_altdotnet_usersgr
oup%40yahoogroups.com>,
> >>> "Craig Nicol"
> >>> <craig.nicol@> wrote:
> >>> >
> >>> > One of the discussions to come out of the pub this week was
where's
> >>> the best
> >>> > place to get information on alt.net (or potential alt.net)
> >>> technologies, and
> >>> > I know the answer is always blogs, but is it worth creating a
> >>> directory of
> >>> > useful blogs on the links page of the group (or indeed on the
> >>> > scotalt.netsite). Which blogs and other sites would you put
on it?
> >>> >
> >>> > I've got into the habit of sharing the interesting stuff
(mainly,
> >>> but not
> >>> > always programming) via Google Reader at this e-mail address,
and
> >>> forwarding
> >>> > it to my twitter, and you can see which programming feeds I
read at
> >>> this
> >>> > Google Reader feed if you're interested :
> >>> >
> >>>
https://www.google.com/reader/shared/user/01260198319981336196/label/p
> >>> rogramming
> >>> >
> >>> > Anyone else like to share their sources?
> >>> >
> >>> > C
> >>> >
> >>> > --
> >>> > skype: callto:craignicol
> >>> > sip:craignicol@<sip%3Acraignicol@>
> >>> > http://twitter.com/craignicol http://craignicol.wordpress.com
> >>> >
> >>>
> >>>
> >>
> >>
> >> --
> >> "My JUJU stronger than your JUJU"
> >>
> >
> >
> >
> > --
> > "Any fool can write code that a computer can understand. Good
programmers
> > write code that humans can understand."
> > -Martin Fowler et al, Refactoring: Improving the Design of
Existing Code
> >
> >
> >
>
>
>
> --
> --------------------------------------------------------------------
-----------------------------------------------
>
> "Alt.net is the Y¨¬ J¨©ng of software development"
> - Dave the Ninja, http://www.scotalt.net
>
> --------------------------------------------------------------------
-----------------------------------------------
>

#738 From: "Chris Canal" <dhtmlgod@...>
Date: Tue Oct 21, 2008 1:36 pm
Subject: Re: Re: Binsor with Asp.Net MVC (beta) problem
cr_canal
Offline Offline
Send Email Send Email
 
No problem, that will also work with your IService component registration, really tidies things up

On Tue, Oct 21, 2008 at 2:22 PM, Colin Gemmell <pythonandchips@...> wrote:

Cheers Chris that sorted the problem (just as my boss came in perfect
timing). Buy you a pint for that.

Colin G

--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Chris Canal"


<dhtmlgod@...> wrote:
>
> And more, make sure you set the lifestyle of controllers to
Transient. The
> default is Singleton, and will break with Mvc. I mention it because
your
> not doing that in the boo file, of course you could be using an
attribute.
> If so, just tell me to shut up :o)
>
> On Tue, Oct 21, 2008 at 2:13 PM, Chris Canal <dhtmlgod@...> wrote:
>
> > And just so you know what you where doing wrong:
> >
> > Component(type.Name, *System.Web.Mvc.Controller*, type)
> >
> > The controllers where being registed with the service type of
Controller
> > with the above bolded seciotn, so trying to resolve
LoginController will not
> > work. To make your code work, it would need to be this:
> >
> > Component type.Name, type
> >
> >
> > On Tue, Oct 21, 2008 at 2:10 PM, Chris Canal <dhtmlgod@...> wrote:
> >
> >> Try this:
> >>
> >> for type in AllTypesBased of IController("Practicum.Web"):
> >> component type.FullName, type:
> >> lifestyle Transient
> >>
> >>
> >> On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell
<pythonandchips@...>wrote:

> >>
> >>> Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm
> >>> having.
> >>>
> >>> I've got a very simple boo script that runs through the MVC app and
> >>> another dll that holds services etc.
> >>>
> >>> when the web-site runs i keep getting a "No component for supporting
> >>> the service Practicum.Web.Controllers.LoginController" error. I've
> >>> looked at the ControllerBuilder and both the login controller
and its
> >>> dependancies are in there but it is not resolving it at all.
> >>>
> >>> The code im using is as follows:
> >>>
> >>> //global.asax.cs file
> >>> public class MvcApplication : System.Web.HttpApplication
> >>> {
> >>> public IControllerFactory Factory;
> >>> public IWindsorContainer Container;
> >>>
> >>> public static void RegisterRoutes(RouteCollection routes)
> >>> {
> >>> routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
> >>>
> >>> routes.MapRoute(
> >>> "Default",
> >>> // Route name
> >>> "{controller}/{action}/{id}",
> >>> // URL with parameters
> >>> new { controller = "Login", action = "Login", id = ""
> >>> } // Parameter defaults
> >>> );
> >>>
> >>> }
> >>>
> >>> protected void Application_Start()
> >>> {
> >>> RegisterRoutes(RouteTable.Routes);
> >>> Container = new WindsorContainer();
> >>> BooReader.Read(Container, "Support files/windsor.boo");
> >>> Factory = new WindsorControllerFactory(Container);
> >>> ControllerBuilder.Current.SetControllerFactory(Factory);
> >>> }
> >>> }
> >>>
> >>> /////boo script
> >>> import Practicum.Web
> >>> import System.Web.Mvc
> >>> import Practicum.Core
> >>> import System
> >>> import System.Reflection
> >>> import Castle.Windsor
> >>> import Castle.Core
> >>>
> >>> practicumweb = Assembly.Load("Practicum.Web")
> >>> for type in practicumweb.GetTypes():
> >>> if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
> >>> Component(type.Name, System.Web.Mvc.Controller, type)
> >>>
> >>>
> >>> practicumcore = Assembly.Load("Practicum.Core")
> >>> for type in practicumcore.GetTypes():
> >>> if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
> >>> and type is not typeof(Practicum.Core.Service.IService):
> >>> Component(type.Name, Practicum.Core.Service.IService, type)
> >>>
> >>> //default page load on the Default.aspx.cs file in site root. I
havn't
> >>> changed this at all
> >>> public void Page_Load(object sender, System.EventArgs e)
> >>> {
> >>> HttpContext.Current.RewritePath(Request.ApplicationPath);
> >>> IHttpHandler httpHandler = new MvcHttpHandler();
> >>> httpHandler.ProcessRequest(HttpContext.Current);
> >>> }
> >>>
> >>> //login controller
> >>>
> >>> [HandleError]
> >>> public class LoginController : Controller
> >>> {
> >>> private readonly IService _service;
> >>>
> >>> public LoginController (IService CustomService)
> >>> {
> >>> _service = CustomService;
> >>> }
> >>>
> >>> public ActionResult Login()
> >>> {
> >>> return View();
> >>> }
> >>> }
> >>>
> >>> The CustomService currently has nothing in it and derives from
IService.
> >>>
> >>> If anyone can help that would be great.
> >>> Cheer
> >>> Colin G
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >> --

> >> "Any fool can write code that a computer can understand. Good
programmers
> >> write code that humans can understand."
> >> -Martin Fowler et al, Refactoring: Improving the Design of
Existing Code
> >>
> >
> >
> >
> > --
> > "Any fool can write code that a computer can understand. Good
programmers
> > write code that humans can understand."
> > -Martin Fowler et al, Refactoring: Improving the Design of
Existing Code
> >
>
>
>
> --
> "Any fool can write code that a computer can understand. Good
programmers
> write code that humans can understand."
> -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
>




--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

#737 From: "Colin Gemmell" <pythonandchips@...>
Date: Tue Oct 21, 2008 1:22 pm
Subject: Re: Binsor with Asp.Net MVC (beta) problem
pythonandchips2
Offline Offline
Send Email Send Email
 
Cheers Chris that sorted the problem (just as my boss came in perfect
timing). Buy you a pint for that.

Colin G

--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Chris Canal"
<dhtmlgod@...> wrote:
>
> And more, make sure you set the lifestyle of controllers to
Transient.  The
> default is Singleton, and will break with Mvc.  I mention it because
your
> not doing that in the boo file, of course you could be using an
attribute.
> If so, just tell me to shut up :o)
>
> On Tue, Oct 21, 2008 at 2:13 PM, Chris Canal <dhtmlgod@...> wrote:
>
> > And just so you know what you where doing wrong:
> >
> > Component(type.Name, *System.Web.Mvc.Controller*, type)
> >
> > The controllers where being registed with the service type of
Controller
> > with the above bolded seciotn, so trying to resolve
LoginController will not
> > work.  To make your code work, it would need to be this:
> >
> > Component type.Name, type
> >
> >
> > On Tue, Oct 21, 2008 at 2:10 PM, Chris Canal <dhtmlgod@...> wrote:
> >
> >> Try this:
> >>
> >> for type in AllTypesBased of IController("Practicum.Web"):
> >>         component type.FullName, type:
> >>             lifestyle Transient
> >>
> >>
> >> On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell
<pythonandchips@...>wrote:
> >>
> >>>   Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm
> >>> having.
> >>>
> >>> I've got a very simple boo script that runs through the MVC app and
> >>> another dll that holds services etc.
> >>>
> >>> when the web-site runs i keep getting a "No component for supporting
> >>> the service Practicum.Web.Controllers.LoginController" error. I've
> >>> looked at the ControllerBuilder and both the login controller
and its
> >>> dependancies are in there but it is not resolving it at all.
> >>>
> >>> The code im using is as follows:
> >>>
> >>> //global.asax.cs file
> >>> public class MvcApplication : System.Web.HttpApplication
> >>> {
> >>> public IControllerFactory Factory;
> >>> public IWindsorContainer Container;
> >>>
> >>> public static void RegisterRoutes(RouteCollection routes)
> >>> {
> >>> routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
> >>>
> >>> routes.MapRoute(
> >>> "Default",
> >>> // Route name
> >>> "{controller}/{action}/{id}",
> >>> // URL with parameters
> >>> new { controller = "Login", action = "Login", id = ""
> >>> } // Parameter defaults
> >>> );
> >>>
> >>> }
> >>>
> >>> protected void Application_Start()
> >>> {
> >>> RegisterRoutes(RouteTable.Routes);
> >>> Container = new WindsorContainer();
> >>> BooReader.Read(Container, "Support files/windsor.boo");
> >>> Factory = new WindsorControllerFactory(Container);
> >>> ControllerBuilder.Current.SetControllerFactory(Factory);
> >>> }
> >>> }
> >>>
> >>> /////boo script
> >>> import Practicum.Web
> >>> import System.Web.Mvc
> >>> import Practicum.Core
> >>> import System
> >>> import System.Reflection
> >>> import Castle.Windsor
> >>> import Castle.Core
> >>>
> >>> practicumweb = Assembly.Load("Practicum.Web")
> >>> for type in practicumweb.GetTypes():
> >>> if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
> >>> Component(type.Name, System.Web.Mvc.Controller, type)
> >>>
> >>>
> >>> practicumcore = Assembly.Load("Practicum.Core")
> >>> for type in practicumcore.GetTypes():
> >>> if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
> >>> and type is not typeof(Practicum.Core.Service.IService):
> >>> Component(type.Name, Practicum.Core.Service.IService, type)
> >>>
> >>> //default page load on the Default.aspx.cs file in site root. I
havn't
> >>> changed this at all
> >>> public void Page_Load(object sender, System.EventArgs e)
> >>> {
> >>> HttpContext.Current.RewritePath(Request.ApplicationPath);
> >>> IHttpHandler httpHandler = new MvcHttpHandler();
> >>> httpHandler.ProcessRequest(HttpContext.Current);
> >>> }
> >>>
> >>> //login controller
> >>>
> >>> [HandleError]
> >>> public class LoginController : Controller
> >>> {
> >>> private readonly IService _service;
> >>>
> >>> public LoginController (IService CustomService)
> >>> {
> >>> _service = CustomService;
> >>> }
> >>>
> >>> public ActionResult Login()
> >>> {
> >>> return View();
> >>> }
> >>> }
> >>>
> >>> The CustomService currently has nothing in it and derives from
IService.
> >>>
> >>> If anyone can help that would be great.
> >>> Cheer
> >>> Colin G
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> "Any fool can write code that a computer can understand. Good
programmers
> >> write code that humans can understand."
> >> -Martin Fowler et al, Refactoring: Improving the Design of
Existing Code
> >>
> >
> >
> >
> > --
> > "Any fool can write code that a computer can understand. Good
programmers
> > write code that humans can understand."
> > -Martin Fowler et al, Refactoring: Improving the Design of
Existing Code
> >
>
>
>
> --
> "Any fool can write code that a computer can understand. Good
programmers
> write code that humans can understand."
> -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
>

#736 From: "Chris Canal" <dhtmlgod@...>
Date: Tue Oct 21, 2008 1:14 pm
Subject: Re: Binsor with Asp.Net MVC (beta) problem
cr_canal
Offline Offline
Send Email Send Email
 
And more, make sure you set the lifestyle of controllers to Transient.  The default is Singleton, and will break with Mvc.  I mention it because your not doing that in the boo file, of course you could be using an attribute.  If so, just tell me to shut up :o)

On Tue, Oct 21, 2008 at 2:13 PM, Chris Canal <dhtmlgod@...> wrote:
And just so you know what you where doing wrong:


Component(type.Name, System.Web.Mvc.Controller, type)

The controllers where being registed with the service type of Controller with the above bolded seciotn, so trying to resolve LoginController will not work.  To make your code work, it would need to be this:

Component type.Name, type


On Tue, Oct 21, 2008 at 2:10 PM, Chris Canal <dhtmlgod@...> wrote:
Try this:

for type in AllTypesBased of IController("Practicum.Web"):
        component type.FullName, type:
            lifestyle Transient


On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell <pythonandchips@...> wrote:

Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm having.

I've got a very simple boo script that runs through the MVC app and
another dll that holds services etc.

when the web-site runs i keep getting a "No component for supporting
the service Practicum.Web.Controllers.LoginController" error. I've
looked at the ControllerBuilder and both the login controller and its
dependancies are in there but it is not resolving it at all.

The code im using is as follows:

//global.asax.cs file
public class MvcApplication : System.Web.HttpApplication
{
public IControllerFactory Factory;
public IWindsorContainer Container;

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Login", action = "Login", id = ""
} // Parameter defaults
);

}

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Container = new WindsorContainer();
BooReader.Read(Container, "Support files/windsor.boo");
Factory = new WindsorControllerFactory(Container);
ControllerBuilder.Current.SetControllerFactory(Factory);
}
}

/////boo script
import Practicum.Web
import System.Web.Mvc
import Practicum.Core
import System
import System.Reflection
import Castle.Windsor
import Castle.Core

practicumweb = Assembly.Load("Practicum.Web")
for type in practicumweb.GetTypes():
if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
Component(type.Name, System.Web.Mvc.Controller, type)


practicumcore = Assembly.Load("Practicum.Core")
for type in practicumcore.GetTypes():
if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
and type is not typeof(Practicum.Core.Service.IService):
Component(type.Name, Practicum.Core.Service.IService, type)

//default page load on the Default.aspx.cs file in site root. I havn't
changed this at all
public void Page_Load(object sender, System.EventArgs e)
{
HttpContext.Current.RewritePath(Request.ApplicationPath);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}

//login controller

[HandleError]
public class LoginController : Controller
{
private readonly IService _service;

public LoginController (IService CustomService)
{
_service = CustomService;
}

public ActionResult Login()
{
return View();
}
}

The CustomService currently has nothing in it and derives from IService.

If anyone can help that would be great.
Cheer
Colin G




--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code



--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code



--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

#735 From: "Chris Canal" <dhtmlgod@...>
Date: Tue Oct 21, 2008 1:13 pm
Subject: Re: Binsor with Asp.Net MVC (beta) problem
cr_canal
Offline Offline
Send Email Send Email
 
And just so you know what you where doing wrong:

Component(type.Name, System.Web.Mvc.Controller, type)

The controllers where being registed with the service type of Controller with the above bolded seciotn, so trying to resolve LoginController will not work.  To make your code work, it would need to be this:

Component type.Name, type

On Tue, Oct 21, 2008 at 2:10 PM, Chris Canal <dhtmlgod@...> wrote:
Try this:

for type in AllTypesBased of IController("Practicum.Web"):
        component type.FullName, type:
            lifestyle Transient


On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell <pythonandchips@...> wrote:

Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm having.

I've got a very simple boo script that runs through the MVC app and
another dll that holds services etc.

when the web-site runs i keep getting a "No component for supporting
the service Practicum.Web.Controllers.LoginController" error. I've
looked at the ControllerBuilder and both the login controller and its
dependancies are in there but it is not resolving it at all.

The code im using is as follows:

//global.asax.cs file
public class MvcApplication : System.Web.HttpApplication
{
public IControllerFactory Factory;
public IWindsorContainer Container;

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Login", action = "Login", id = ""
} // Parameter defaults
);

}

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Container = new WindsorContainer();
BooReader.Read(Container, "Support files/windsor.boo");
Factory = new WindsorControllerFactory(Container);
ControllerBuilder.Current.SetControllerFactory(Factory);
}
}

/////boo script
import Practicum.Web
import System.Web.Mvc
import Practicum.Core
import System
import System.Reflection
import Castle.Windsor
import Castle.Core

practicumweb = Assembly.Load("Practicum.Web")
for type in practicumweb.GetTypes():
if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
Component(type.Name, System.Web.Mvc.Controller, type)


practicumcore = Assembly.Load("Practicum.Core")
for type in practicumcore.GetTypes():
if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
and type is not typeof(Practicum.Core.Service.IService):
Component(type.Name, Practicum.Core.Service.IService, type)

//default page load on the Default.aspx.cs file in site root. I havn't
changed this at all
public void Page_Load(object sender, System.EventArgs e)
{
HttpContext.Current.RewritePath(Request.ApplicationPath);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}

//login controller

[HandleError]
public class LoginController : Controller
{
private readonly IService _service;

public LoginController (IService CustomService)
{
_service = CustomService;
}

public ActionResult Login()
{
return View();
}
}

The CustomService currently has nothing in it and derives from IService.

If anyone can help that would be great.
Cheer
Colin G




--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code



--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

#734 From: "Chris Canal" <dhtmlgod@...>
Date: Tue Oct 21, 2008 1:10 pm
Subject: Re: Binsor with Asp.Net MVC (beta) problem
cr_canal
Offline Offline
Send Email Send Email
 
Try this:

for type in AllTypesBased of IController("Practicum.Web"):
        component type.FullName, type:
            lifestyle Transient

On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell <pythonandchips@...> wrote:

Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm having.

I've got a very simple boo script that runs through the MVC app and
another dll that holds services etc.

when the web-site runs i keep getting a "No component for supporting
the service Practicum.Web.Controllers.LoginController" error. I've
looked at the ControllerBuilder and both the login controller and its
dependancies are in there but it is not resolving it at all.

The code im using is as follows:

//global.asax.cs file
public class MvcApplication : System.Web.HttpApplication
{
public IControllerFactory Factory;
public IWindsorContainer Container;

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Login", action = "Login", id = ""
} // Parameter defaults
);

}

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Container = new WindsorContainer();
BooReader.Read(Container, "Support files/windsor.boo");
Factory = new WindsorControllerFactory(Container);
ControllerBuilder.Current.SetControllerFactory(Factory);
}
}

/////boo script
import Practicum.Web
import System.Web.Mvc
import Practicum.Core
import System
import System.Reflection
import Castle.Windsor
import Castle.Core

practicumweb = Assembly.Load("Practicum.Web")
for type in practicumweb.GetTypes():
if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
Component(type.Name, System.Web.Mvc.Controller, type)


practicumcore = Assembly.Load("Practicum.Core")
for type in practicumcore.GetTypes():
if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
and type is not typeof(Practicum.Core.Service.IService):
Component(type.Name, Practicum.Core.Service.IService, type)

//default page load on the Default.aspx.cs file in site root. I havn't
changed this at all
public void Page_Load(object sender, System.EventArgs e)
{
HttpContext.Current.RewritePath(Request.ApplicationPath);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}

//login controller

[HandleError]
public class LoginController : Controller
{
private readonly IService _service;

public LoginController (IService CustomService)
{
_service = CustomService;
}

public ActionResult Login()
{
return View();
}
}

The CustomService currently has nothing in it and derives from IService.

If anyone can help that would be great.
Cheer
Colin G




--
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-Martin Fowler et al, Refactoring: Improving the Design of Existing Code

Messages 734 - 763 of 763   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help