/// <summary>
 /// Initializes a new instance of the <see cref="PortManningControllerTests"/> class.
 /// </summary>
 public PortManningControllerTests()
 {
     Dependencies.Register();
     this.manager = new Mock<IPortManningManager>();
     this.controller = new PortManningController(this.manager.Object);
     CommonHelper.MockHttpRequestContext();
     SessionData.Instance.MasterData = CommonHelper.SetupMasterDataForUIControllers();
     DIContainer.Instance.Resolve<IComponentSettingsEntities>().MaxPageSize = 2;
     SetMasterData();
     this.manager.Setup(mockItem => mockItem.RetrievePortManningDetail(It.IsAny<SearchFilters>())).Returns(Task.FromResult(new ListResult<PortManning>()));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PortManningControllerTests"/> class.
 /// </summary>
 public PortManningControllerTests()
 {
     this.portManningManager = new Mock<IPortManningManager>();
     this.portManningController = new PortManningController(this.portManningManager.Object);
 }