Beispiel #1
0
        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));
        }
Beispiel #3
0
 public RecentPerson(ContributionDetails contributionDetails, RecentInfoType recentInfoType)
     : base(contributionDetails, recentInfoType)
 {
 }
Beispiel #4
0
 public RecentProperty(ContributionDetails contributionDetails, RecentInfoType recentInfoType)
     : base(contributionDetails, recentInfoType)
 {
 }
 public RecentCallForService(ContributionDetails contributionDetails, RecentInfoType recentInfoType)
     : base(contributionDetails, recentInfoType)
 {
 }
Beispiel #6
0
 protected RecentInfo(ContributionDetails contributionDetails, RecentInfoType recentInfoType)
 {
     ContributionDetails = contributionDetails;
     RecentInfoType      = recentInfoType;
     SetContributionDate(DateTime.Now);
 }