Skip to content

Commit

Permalink
Application was missing arbitrary business logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
punkcoder committed Apr 8, 2015
1 parent 9d282f6 commit 048d763
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arbitraryBusinessLogic.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace illacceptanything
{
public class arbitraryBusinessLogic
{
public double GetNumberOne(string user)
{
if (!string.IsNullOrEmpty(user) && user == "Dave")
{
Random rand = new Random();
double gate = rand.NextDouble();

if (gate > .3)
{
return .9999999993;
}
}
return 1.0;
}
}
}

0 comments on commit 048d763

Please sign in to comment.