public void TestGetPrimaryCallType() { //Arrange CallLogModel model = new CallLogModel(new FakeUnitOfWork()); //Act CS_PrimaryCallType result = model.GetPrimaryCallType(1); //Assert Assert.IsNotNull(result); }
/// <summary> /// Gets The Identified PrimaryCallType /// </summary> public void GetPrimaryCallType() { try { using (_callLogModel = new CallLogModel()) { _view.SelectedPrimaryCallType = _callLogModel.GetPrimaryCallType(_view.PrimaryCallTypeId); } } catch (Exception ex) { Logger.Write(string.Format("An Error has ocurred while trying to GetPrimaryCallType.\n{0}\n{1}", ex.Message, ex.StackTrace)); _view.DisplayMessage("An Internal Error has ocurred while trying to load the Information. Please try again.", false); } }