Ejemplo n.º 1
0
        private void GenerateProvisions()
        {
            var expertProvisionNovice = new Provision
            {
                Description = "Starter provision for novice experts",
                ProvisionExpert = ProvisionExpert.Novice,
                ProvisionValue = 0.65M
            };
            Repository.Provision.Add(expertProvisionNovice);

            var expertProvisionIntermediate = new Provision
            {
                Description = "Better provision for intermediate experts",
                ProvisionExpert = ProvisionExpert.Intermediate,
                ProvisionValue = 0.75M
            };
            Repository.Provision.Add(expertProvisionIntermediate);

            var expertProvisionExperienced = new Provision
            {
                Description = "Advanced provision for experienced experts",
                ProvisionExpert = ProvisionExpert.Experienced,
                ProvisionValue = 0.85M
            };
            Repository.Provision.Add(expertProvisionExperienced);

            var expertProvisionFullProfit = new Provision
            {
                Description = "Full profit provision for best experts",
                ProvisionExpert = ProvisionExpert.FullProfit,
                ProvisionValue = 0.95M
            };
            Repository.Provision.Add(expertProvisionFullProfit);

            var partnerProvisionStarter = new Provision
            {
                Description = "Starter provision for partners",
                ProvisionPartner = ProvisionPartner.StandardPartner,
                ProvisionValue = 0.2M
            };
            Repository.Provision.Add(partnerProvisionStarter);
        }
Ejemplo n.º 2
0
 public static decimal GetExpertProvision(Provision provision)
 {
     return provision.ProvisionValue;
 }