public Guid ContributeVehicle(ContributionDetails contributionDetails, RecentInfoType recentInfoType, RecentVehicleDetails details) { purgeOldRecords("RecentVehicles"); return(UsefulVehicleData(details) ? ProcessContribution(contributionDetails, details, () => new RecentVehicle(contributionDetails.As <Domain.RecentInfo.ValueObjects.ContributionDetails>(), recentInfoType)) : Guid.Empty); }
private void ContributeVehicle(RecentInfoType recentInfoType) { var recentInfoCommandService = GetDependency <IRecentInfoCommandService>(); Assert.IsInstanceOfType(recentInfoCommandService, typeof(IRecentInfoCommandService)); Guid contributeVehicleId = recentInfoCommandService.ContributeVehicle(MockObjects.NewContributionDetails, recentInfoType, MockObjects.NewRecentVehicleDetails); Assert.AreNotEqual(contributeVehicleId, Guid.Empty); Assert.IsInstanceOfType(contributeVehicleId, typeof(Guid)); }
public RecentPerson(ContributionDetails contributionDetails, RecentInfoType recentInfoType) : base(contributionDetails, recentInfoType) { }
public RecentProperty(ContributionDetails contributionDetails, RecentInfoType recentInfoType) : base(contributionDetails, recentInfoType) { }
public RecentCallForService(ContributionDetails contributionDetails, RecentInfoType recentInfoType) : base(contributionDetails, recentInfoType) { }
protected RecentInfo(ContributionDetails contributionDetails, RecentInfoType recentInfoType) { ContributionDetails = contributionDetails; RecentInfoType = recentInfoType; SetContributionDate(DateTime.Now); }