Tips on how to better test your feature and on working on a new project!

When you’re working on a new feature in a new project or a legacy one, here are some tips to help you. #csharp #dotnet #angular #rubyonrails #testing #writing

Don’t test with a single User

How to start working on a new / legacy project?

Controllers

[HttpGet]
public async Task<IActionResult> MyOrders()
{
Guard.Against.Null(User?.Identity?.Name, nameof(User.Identity.Name));
var viewModel = await _mediator.Send(new GetMyOrders(User.Identity.Name));

return View(viewModel);
}

Get Citation feature using Grammarly

--

--

Senior Software Developer, Writer, Amateur Photographer, Reader

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store