/// <summary> /// Constructor for Loyalty Members. /// Dependency Injection for Loyalty Benefits and IValidator Service /// </summary> /// <param name="loyaltyBenefits"></param> /// <param name="validator"></param> public LoyaltyMember(ILoyaltyBenefits loyaltyBenefits, IValidator validator) { _loyaltyBenefits = loyaltyBenefits; _validator = validator; }
public void Setup() { _iPassengerDetails = Substitute.For <IPassengerDetails>(); _loyaltyBenefits = new LoyaltyBenefits(true, 50, true); _generalPassenger = new LoyaltyMember(_loyaltyBenefits, new FlightSummaryValidator()); }