CSharpFeeds - All your C# feeds in one place.

Thursday, November 26, 2009

New configuration syntax for FakeItEasy

by Patrik Hägne via Legend and truth on 11/26/2009 9:06:00 PM

I’ve implemented a new, cleaner simpler, ninja-deluxe-shiny-gold-plated-ultra-cool way of configuring fakes/stubs/mocks in FakeItEasy. The news are two fold: Simpler call specifications Simpler argument validations How’s this for simple?public void Example() { var serviceProvider = A.Fake<IServiceProvider>(); var service = A.Fake<IWidgetFactory>(); A.CallTo(() => serviceProvider.GetService(typeof(IWidgetFactory))).Returns(service); } No need for awkward lambda expr ...

[ read more ]

Magellan and WPF Page management woes

by Paul Stovell via Paul Stovell on 11/26/2009 2:57:34 PM

Progress on Magellan has been a little slow this week as I have been experimenting with some ways to optimize memory usage when dealing with WPF pages. A lot of it comes down to issues with WPF's navigation system and some of the limitations it has. The major problem we encounter when using WPF Page objects is that if you were to do something like this: NavigationService.Navigate(new MyPage()); You just got yourself an object that will never be garbage collected. This ha ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us