Mock framework

2009-05-20 Thread Mark Jensen
Hi :) Can some of you point me to some good Mock frameworks? best regards Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to

Re: Mock framework

2009-05-20 Thread Jonathon Rossi
http://ayende.com/projects/rhino-mocks.aspx http://code.google.com/p/moq/ On Wed, May 20, 2009 at 8:41 PM, Mark Jensen don...@gmail.com wrote: Hi :) Can some of you point me to some good Mock frameworks? best regards Mark -- Jono

Re: Mock framework

2009-05-20 Thread Mark Jensen
Thanks mate.. which one do you prefer? On May 20, 12:45 pm, Jonathon Rossi j...@jonorossi.com wrote: http://ayende.com/projects/rhino-mocks.aspxhttp://code.google.com/p/moq/ On Wed, May 20, 2009 at 8:41 PM, Mark Jensen don...@gmail.com wrote: Hi :) Can some of you point me to some

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Ken Egozi
map *.txt extensions to StaticFileHandler, they won't fire up MonoRail at all. On Wed, May 20, 2009 at 2:21 PM, Jimmy Shimizu jimmy.shim...@gmail.comwrote: I'm using RoutingModuleEx, basic MonoRail routing that is mapped like this: add name=MonoRail path=* verb=*

Re: Mock framework

2009-05-20 Thread Jonathon Rossi
We use Rhino Mocks at work, but really it is really up to you because they are fairly similar frameworks. Try them out for a test or two because they do have some usage differences (e.g. with Moq you use new MockT().Object to get the mock object). On Wed, May 20, 2009 at 9:20 PM, Mark Jensen

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jonathon Rossi
Henrik, you can attach a patch to the mailing list even if it is a draft to get others to look at it. This is the way many people ask for feedback on code changes. If a branch was created for you, you would still need to submit patches rather than commit them yourself as only committers have

RE: robots.txt and sitemaps with routing

2009-05-20 Thread Henrik Feldt
Hello Jimmy, What I did, was to modify the routing in the routing module and also add a property IsStaticFile on the RouteMatch, so that the routing, which is responsible for rewriting the url, checks for static files, rather than letting MRHttpHandlerFactory do it. What MRHHF does is to check

Re: Monorail: Action of SmartDispatcherController after Filtering

2009-05-20 Thread Flominator
That's what I call a precise reply. Thank you! Now I've written a filter that refreshes the menu item after the localization filter. On 19 Mai, 16:59, Colin Ramsay colinram...@gmail.com wrote: Why not just do everything in the filter then? On Tue, May 19, 2009 at 3:56 PM, Flominator

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jimmy Shimizu
What do you do when matching a static file? Do you explicitly check the filesystem for existance? I think I'd still keep my static-folder for content that always will be static (to avoid unnessecary processing of files through MR), but for certain root-files this approach isn't applicable.

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Ken Egozi
1. isn't it better to have static files not reach MRHHF at all? 2. I really don't like the if there's a real file, do not process MR logic. on many occasions, when server is not secured correctly, a loophole allows an attacker to upload files (not change or delete, but add) to the site. now if

Trying to use log4net integration - what am I missing?

2009-05-20 Thread George Mauer
I have never used log4net before nor the windsor logging facility, I have gotten the logging facility to work with the console logger and now am trying to set it up with log4net and hitting a roadblock. Going off the information in this article:

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread George Mauer
My facility configuration is in code by the way: WindsorContainer.AddFacility(facility.logging, new LoggingFacility (LoggerImplementation.Log4net)) On May 20, 2:20 pm, George Mauer gma...@gmail.com wrote: I have never used log4net before nor the windsor logging facility, I have gotten the

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
I always have the config in logging.config in my application root, rather than in the app/web.config, I think that's a logging facility thing. You can actually enable log4net internal debugging to find out what's going on in there. Take a look at How do I enable log4net internal debugging? in

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
And actually, looking at your links, the coderant one says 3. Add the log4net config file to the root of the web application: and the one from the castle list specifies a config file in the facility configuration (facility id=loggingfacility configFile=RSS.KM.DataAccess.Tests.dll.config)... I

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Jason Meckley
I haven't had a problem with the logging facilty. I keep my log4net configs in a separate file and I do NOT set the [assembly: log4net.Config.XmlConfigurator(Watch = true)] Make sure the logging facility is the first facility registered and your objects have a public setter for ILogger. On May

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread George Mauer
Ok, so now I have the logging.config file ?xml version=1.0 encoding=utf-8 ? appender name=RollingFile type=log4net.Appender.RollingFileAppender file value=di.log / appendToFile value=true / maximumFileSize value=100KB / maxSizeRollBackups value=2 / layout

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
That config is wrong, you need the configuration and log4net root elements. Here's a sample from one of my projects: ?xml version=1.0 encoding=utf-8 ? configuration log4net appender name=SmtpAppender type=log4net.Appender.SmtpAppender to value=colinram...@gmail.com /

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jimmy Shimizu
I would agree on first point, seems like unecessary overhead. I just want the possibility to add certain explicit filetypes without having to fool around with the config (like site-validation etc). I'm gonna write a controller-action for robots.txt anyway because I want that automated. so

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread George Mauer
Thanks all, I finally got log4net working! Between colin pointing out that I was missing the config and log4net nodes and watching the internal debug messages I was able to get it. For one thing it seems that the default log config name is log4net.config not logging.config - once I made those 2

Re: db4o faciltiy survey

2009-05-20 Thread Henry Conceição
Since nobody stand against it, the db4o facility is officially a dead project and will be move to attic. Cheers, Henry Conceição 2009/5/10 Henry Conceição henry.concei...@gmail.com: I'm waiting a response from German, the db4o community manager, to see if anyone there uses it (which I don't

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
Oops, yes, looking at my actual facility config you can see why logging.config was my filename: facility id=logging type=Castle.Facilities.Logging.LoggingFacility, Castle.Facilities.Logging configFile=logging.config

RE: robots.txt and sitemaps with routing

2009-05-20 Thread Henrik Feldt
Hi Ken, Jimmy! Here are some good links I found discussing the issue, which stood out: http://forums.iis.net/t/1119896.aspx (see last reply) http://www.unfocus.com/projects/2009/04/01/responseencoding-in-iis7-for-static-html-files-in-webconfig/

Introducing Mocks

2009-05-20 Thread the.email.tr...@gmail.com
Hello, I hear a lot about mocks, tests with mocks, the Rhino Mocks, although I've read the ayende's mock page, I cannot find the usage.. Can somebody tell me how can I get started to this? It really must to be so useful because everybody is talking about this.. Stls

Re: Introducing Mocks

2009-05-20 Thread Mauricio Scheffer
Here's a couple of tutorials/introduction articles: * http://www.mockobjects.com/book/index.html * http://www.dimecasts.net/Casts/CastDetails/8 * http://blog.vuscode.com/malovicn/archive/2007/02/04/tdd-rhino-mocks-part-1-introduction.aspx On May 20, 7:11 pm, the.email.tr...@gmail.com

Can i build a project from trunk itself.

2009-05-20 Thread Kcube
Is there any tool which support for build from project trunk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To