public void Then_UpdateOpportunityItem_Is_Called_With_Default_Job_Title()
 {
     _opportunityService
     .Received(1)
     .UpdateOpportunityItemAsync(Arg.Is <PlacementInformationSaveDto>(
                                     p => p.OpportunityId == 1 &&
                                     string.IsNullOrEmpty(p.JobRole)));
 }
 public void Clear_And_Load_Is_Called_Exactly_Once_In_Correct_Order()
 {
     Received.InOrder(() =>
     {
         _opportunityService.Received(1).ClearOpportunityItemsSelectedForReferralAsync(1);
         _opportunityService.Received(1).GetOpportunityBasketAsync(1);
     });
 }
示例#3
0
 public void Then_UpdateOpportunityItem_Is_Called_With_Expected_Field_Values()
 {
     _opportunityService.
     Received(1)
     .UpdateOpportunityItemAsync(Arg.Is <PlacementInformationSaveDto>(
                                     p => p.OpportunityId == 1 &&
                                     p.PlacementsKnown.HasValue &&
                                     !p.PlacementsKnown.Value &&
                                     p.Placements == 1
                                     ));
 }
示例#4
0
 public void Then_ClearOpportunityItemsSelectedForReferralAsync_Is_Called_With_Expected_Field_Values()
 {
     _opportunityService
     .Received(1)
     .ClearOpportunityItemsSelectedForReferralAsync(Arg.Is <int>(
                                                        id => id == 1
                                                        ));
 }
 public void Then_SaveEmployerDetail_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).UpdateOpportunityAsync(Arg.Is <EmployerDetailDto>(a =>
                                                                                       a.PrimaryContact == Contact &&
                                                                                       a.Email == ContactEmail &&
                                                                                       a.Phone == ContactPhone &&
                                                                                       a.ModifiedBy == ModifiedBy));
 }
示例#6
0
 public void Then_GetOpportunity_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).IsReferralOpportunityItemAsync(OpportunityItemId);
 }
 public void Then_OpportunityService_GetOpportunityItemAsync_Is_Called_Exactly_Once()
 {
     _opportunityService
     .Received(1)
     .GetOpportunityItemAsync(Arg.Any <int>());
 }
示例#8
0
 public void Then_OpportunityService_GetOpportunityBasket_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).GetOpportunityBasketAsync(1);
 }
 public void Then_DeleteReferralAsync_Is_Called_Exactly_Once_In_Correct_Order()
 {
     _opportunityService.Received(1).DeleteReferralAsync(ReferralIdToDelete);
 }
 public void Then_OpportunityService_ContinueWithOpportunities_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).ContinueWithOpportunitiesAsync(Arg.Any <ContinueOpportunityViewModel>());
 }
 public void Then_GetCheckAnswers_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).GetCheckAnswersAsync(OpportunityItemId);
 }
 public void Then_UpdateOpportunityItem_Is_Called_Exactly_Once()
 {
     _opportunityService
     .Received(1)
     .UpdateOpportunityItemAsync(Arg.Any <ProviderSearchDto>());
 }
 public void Then_CreateOpportunity_Is_Called_Exactly_Once()
 {
     _opportunityService
     .Received(1)
     .CreateOpportunityAsync(Arg.Any <OpportunityDto>());
 }
 public void GetConfirmDeleteOpportunityItemAsync_Is_Called_Exactly_Once_In_Correct_Order()
 {
     _opportunityService.Received(1).GetConfirmDeleteOpportunityItemAsync(1);
 }
示例#15
0
 public void Then_OpportunityService_GetCompanyNameWithAkaAsync_Is_Called_Exactly_Once()
 {
     _opportunityService
     .Received(1)
     .GetCompanyNameWithAkaAsync(Arg.Any <int>());
 }
示例#16
0
 public void Get_Opportunity_Spreadsheet_Data_Is_Called_Exactly_Once_In_Correct_Order()
 {
     _opportunityService
     .Received(1)
     .GetOpportunitySpreadsheetDataAsync(1);
 }
示例#17
0
 public void Then_UpdateOpportunityItemAsync_Is_Called_Exactly_Once()
 {
     // TODO Assert args
     _opportunityService.Received(1).UpdateOpportunityItemAsync(Arg.Any <CheckAnswersDto>());
 }
 public void Then_UpdateOpportunity_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).UpdateOpportunityAsync(Arg.Any<CompanyNameDto>());
 }
示例#19
0
 public void Then_OpportunityService_GetSavedOpportunityItemCountAsync_Is_Called_Exactly_Once()
 {
     _opportunityService
     .Received(1)
     .GetSavedOpportunityItemCountAsync(1);
 }
示例#20
0
 public void Then_GetPlacementInformation_Is_Called_Exactly_Once()
 {
     _opportunityService.Received(1).GetPlacementInformationAsync(OpportunityItemId);
 }