Skip to content

.NET BLOG

.NET, C# blog

  • Twitter
  • LinkedIn
  • Github
  • RSS

Recent Posts

  • ASP.NET Core – adding controllers directly from integration tests
  • Running ASP.NET Core together with Nancy
  • Introduce substitute refactoring comes to NSubstitute.Analyzers
  • .NET Core – missing currency symbol in docker alpine image
  • MongoDB.Driver – class-based server side projection

Recent Comments

  • TPodolak on .NET Core – calculating code coverage with OpenCover (on Windows)
  • TPodolak on .NET Core – calculating code coverage with OpenCover (on Windows)
  • hoye on .NET Core – calculating code coverage with OpenCover (on Windows)
  • taylor on ASP.NET Core – request serialization issues after migration from classic WebApi
  • Gio on .NET Core – calculating code coverage with OpenCover (on Windows)

Archives

  • June 2020 (1)
  • April 2020 (2)
  • November 2019 (1)
  • October 2019 (2)
  • October 2018 (1)
  • June 2018 (1)
  • April 2018 (2)
  • March 2018 (1)
  • January 2018 (3)
  • December 2017 (2)
  • October 2017 (3)
  • August 2017 (1)
  • July 2017 (1)
  • June 2017 (3)
  • May 2017 (2)
  • April 2017 (2)
  • February 2017 (3)
  • December 2016 (1)
  • November 2016 (3)
  • October 2016 (2)
  • September 2016 (2)
  • July 2016 (4)
  • April 2016 (1)
  • February 2016 (4)
  • August 2015 (2)
  • July 2015 (1)
  • June 2015 (2)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (1)
  • February 2015 (3)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (3)
  • April 2014 (2)
  • March 2014 (1)
  • January 2014 (1)
  • December 2013 (1)
  • November 2013 (2)
  • August 2013 (1)
  • June 2013 (1)
  • May 2013 (1)
  • April 2013 (1)
  • March 2013 (3)
  • January 2013 (1)
  • December 2012 (1)
  • October 2012 (1)
  • September 2012 (4)
  • July 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • March 2012 (1)
  • February 2012 (2)
  • January 2012 (3)
  • December 2011 (4)
  • November 2011 (12)

Categories

  • .NET (12)
  • .NET 4.0 (2)
  • .NET 4.5 (3)
  • .NET Core (2)
  • ActionResult (1)
  • AngularJS (2)
  • ASP.NET Core (14)
  • ASP.NET Web API (1)
  • ASP.NET-MVC (4)
  • async-await (1)
  • attributes (2)
  • AuthenticateAndContinue (1)
  • Authentication (3)
  • Authorization (3)
  • Automapper (1)
  • Automappings (1)
  • Azure (1)
  • Babel (1)
  • Behavior (1)
  • BindingCommand (1)
  • Boxstarter (1)
  • Bubbling (1)
  • c# (19)
  • cake (4)
  • CaliburnMicro (1)
  • CallerMemberName (1)
  • Chrom (1)
  • Code Analysis (1)
  • CommandBehaviors (1)
  • Commands (2)
  • CommanManager (1)
  • CompositeCommand (1)
  • Console2 (1)
  • crawler (1)
  • CustomActionResult (1)
  • DataTemplate (2)
  • DataTrigger (1)
  • DatePicker (2)
  • Debugger (1)
  • Debugging (1)
  • decorator (1)
  • DelegateCommand (1)
  • Disjunction (1)
  • dotnet cli (1)
  • drag-and-drop (1)
  • dynamic (1)
  • ECMAScript6 (1)
  • EF (2)
  • ElasticStack (3)
  • Enterprise Library (1)
  • Entity Framework (2)
  • EventListeners (1)
  • Events (1)
  • explict (1)
  • ExpressionTree (1)
  • Ext.panel.Grid (4)
  • Ext.picker.Date (1)
  • Extjs 4.1.1 (8)
  • Extjs 4.2 (1)
  • Fiddler (1)
  • FluentNhibernate (3)
  • function (1)
  • Globalization (1)
  • Grid (2)
  • Gulp (2)
  • IAsyncResult (1)
  • ICommand (1)
  • IDataErrorInfo (1)
  • INotifyErrorInfo (1)
  • INotifyPropertyChanged (3)
  • Interaction (1)
  • Interactivity (1)
  • interceptor (1)
  • JavaScript (6)
  • Jslint (1)
  • ListCollectionView (1)
  • Localization (3)
  • Logowanie (1)
  • MarkupExtension (1)
  • MembershipProvider (1)
  • Migration (1)
  • ModalWindow (2)
  • MongoDB (1)
  • Mountebank (1)
  • MsSql (2)
  • Multiselect (1)
  • MVC (1)
  • MVVM (3)
  • Nhibernate (4)
  • Ninject (1)
  • Ninject-extensions (1)
  • NLog (3)
  • NSubstitute (3)
  • NUnit (1)
  • PagedCollectionView (1)
  • PDFAcionResult (1)
  • plugin (4)
  • plugins (1)
  • Postman (1)
  • PowerShell (1)
  • Prism (3)
  • QueryOver (1)
  • R# (3)
  • Redis (1)
  • Renderer (1)
  • Resharper (5)
  • resize (1)
  • Restrictions (1)
  • Roles (1)
  • RoutedEvent (1)
  • Security Block (1)
  • Silverlight (12)
  • Silverlight5 (2)
  • Skins (1)
  • Snippet (1)
  • SQL (3)
  • string (1)
  • Styles (1)
  • T-SQL (2)
  • Template (1)
  • Templates (1)
  • Testing (1)
  • Themes (1)
  • TPL (1)
  • Traceur (1)
  • Trigery (1)
  • Triggers (1)
  • tslint (1)
  • Tunelling (1)
  • typescript (1)
  • UIAutomation (1)
  • Uncategorized (1)
  • UnitTest (2)
  • UnobservedTaskException (1)
  • Validation (3)
  • vertical-header (2)
  • ViewModel (1)
  • Visual Studio (2)
  • VSCode (2)
  • Walidacja (2)
  • WCF (2)
  • WebStorm (2)
  • Windows 10 (1)
  • Windows Phone (5)
  • WinJS (1)
  • WPF (14)
  • XTemplate (1)
  • XUnit (2)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Introduce substitute refactoring comes to NSubstitute.Analyzers

2020-04-092020-04-12 TPodolakNSubstitute.Analyzers

I am glad to announce the newest version of NSubstitute.Analyzers comes with “introduce substitute” refactoring, which allows you to automatically create substitutes for constructor arguments as fields or local variables. As an image is worth a thousand words here is a quick demo of C# version

and VisualBasic one

Introduce substitute refactoring comes to NSubstitute.Analyzers

Post navigation

← .NET Core – missing currency symbol in docker alpine image
Running ASP.NET Core together with Nancy →