public void MustFillLocationInfoFieldsWhenCloning()
        {
            //Arrange
            Mock<ILocationInfoView> mockLocationView = new Mock<ILocationInfoView>();
            mockLocationView.SetupProperty(e => e.CloningId, 1);
            mockLocationView.SetupProperty(e => e.LocationInfoEntity, null);
            Mock<JobModel> mockJobModel = new Mock<JobModel>();
            mockJobModel.Setup(e => e.GetLocationInfoByJobId(1)).Returns(new CS_LocationInfo() { JobID = 1 });

            LocationInfoPresenter presenter = new LocationInfoPresenter(mockLocationView.Object, mockJobModel.Object);
            //Act
            //presenter.LoadLocationInfoCloningData();
            //Assert
            Assert.IsNotNull(mockLocationView.Object.LocationInfoEntity);
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     _presenter = new LocationInfoPresenter(this);
 }
 public void WhenJobCloningUsesTheAlreadyCreatedMethodToLoadLocationInfoFields()
 {
     //Arrange
     Mock<ILocationInfoView> mockLocationView = new Mock<ILocationInfoView>();
     mockLocationView.SetupProperty(e => e.CloningId, 1);
     Mock<JobModel> mockJobModel = new Mock<JobModel>();
     LocationInfoPresenter presenter = new LocationInfoPresenter(mockLocationView.Object,mockJobModel.Object);
     //Act
     //presenter.LoadLocationInfoCloningData();
     //Assert
     mockJobModel.Verify(e => e.GetLocationInfoByJobId(1), Times.Once());
 }