-
Notifications
You must be signed in to change notification settings - Fork 21
Refactoring #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring #38
Conversation
Looks good. Presumably we can get the same happening for the other classes in separate pull requests unless you don't think they need it? The test classes probably don't need to be partial classes and in fact, we can probably make the implementation partial classes extension methods and get rid of the partial classes altogether, no big deal though and happy for that to be a separate PR if we decide to do it. There is one #region left behind that you missed by the looks and also telling resharper to hide the namespace warning probably doesn't prevent it using the wrong namespace when creating a new file? There is a setting to override the namespace for a given folder using the settings file (or possibly a separate settings file in the folder in question; I can't remember); let me know if you can't find it and I'll find it for you. FYI If you add or remove files then you need to unload and reload those projects for them to reflect the changes (or reload the sln). Rob Moore | Readify Lead Consultant, Technical Specialist (Microsoft Azure) | m +61 400 777 763 | e rob.moore@readify.net | w readify.net
|
I am happy to refactor them when the need presents itself. I haven't worked too much with those classes you see 😟
It makes more sense to use a partial class for the implementation in my opinion. I will work on some of these things now ✋ |
I think I found the option you are talking about. Setting this property to This is only true when you use Resharper exclusively to add the code file though. When you add a code file using VS in the traditional manner, the folder namespace is still adopted 😕 Is this the option you had in mind? |
I think so :)
|
Refactored ControllerResultTest class.
ControllerResultTest
class.ControllerResultTestTests
class.I have not touched the "OldMvc" folder but it looks buggered. I want to see what the CI says.After doing agit clean
it looks ... clean. No worries there after all.