Posted by Anuraj on Wednesday, December 28, 2016
aspnet core mvc razor
This post is about compiling your ASP.NET Core MVC Views. Normally in ASP.NET MVC, the views are not compiled until they are requested by the browser. To avoid this you can precompile the views. Precompile also helps to identify any errors upfront than at runtime.
Posted by Anuraj on Tuesday, December 20, 2016
unit testing dotnet core C#
This post will give a brief idea about creating and executing unit tests in dotnet core. Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. Unit testing is often automated but it can also be done manually.
Posted by Anuraj on Monday, December 19, 2016
Azure Azure VM Virtual Machine
This post is about configuring and running a webserver in Azure Virtual Machine. Azure Virtual Machine is one of IaaS (Infrastructure as a service) offering from Microsoft Azure. Infrastructure as a service (IaaS) is an instant computing infrastructure, provisioned and managed over the Internet. Quickly scale up and down with demand and pay only for what you use.
Posted by Anuraj on Sunday, December 18, 2016
Azure Logic App App service
This post is about working with Azure Logic Apps. Logic App provide a way to solve, simplify and implement scalable integration and workflow in the cloud. It provides coding and visual designer windows to automate the process. In this post I am creating a azure logic app, which helps to monitor website. Logic Apps is a fully managed iPaaS (integration Platform as a Service) allowing developers not to have to worry about building hosting, scalability, availability and management. Logic Apps will scale up automatically to meet demand.
Posted by Anuraj on Wednesday, December 7, 2016
ASP.NET Core MVC View Components Tag Helpers
This post is about using View Components as Tag Helpers in ASP.NET Core. This feature is from ASP.NET Core 1.1 version onwards. In ASP.NET Core View Components are similar to partial views, but they are much more powerful. View components do not use model binding, and only depend on the data you provide when calling into it. View components can be used for Login panel, Dynamic navigation menus, Tag cloud etc.
Posted by Anuraj on Friday, December 2, 2016
AutoMapper ASP.NET Core MVC
This post is about using Automapper in ASP.NET Core project. AutoMapper is an object-object mapper which allows you to solve the problem of manually mapping each property of a class with the same properties of another class. Before AutoMapper, if you want to map properties of one object to another, you have manually assign each of the property objects, it will hard and error-prone if an object got lot of properties. If you are a MVC developer most of the time you manually map model objects with viewmodel objects. AutoMapper helps to do it in clean and readable way. For using AutoMapper, first you need to set the mapping classes in AutoMapper, you can use CreateMap method for this. To for map classes, you can use Map method.
Posted by Anuraj on Thursday, December 1, 2016
dotnet core FluentAssertions xUnit
This post is about using FluentAssertions in xUnit unit tests. Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. It has better support for exceptions and some other features that improves readability and makes it easier to write unit tests. In this post I am using ASPNET Yo man generator to create unit tests. And I have added FluentAssertions reference via project.json file.