public void ConstructStartupPlan__ReturnsCorrectPlanFields() { var plan = new StartupPlan(); Assert.Equal(100, plan.MaxNumberOfUsersAllowed); Assert.Equal(100.00F, plan.PricePerMonth); }
private static Account GetStartupAccountWithNumberOfUsers(int times = 1) { var planType = new StartupPlan(); var account = new Account(planType); for (int i = 0; i < times; i++) { Guid userId = Guid.NewGuid(); account.RegisterUser(userId); } return(account); }
private static PlanType GetPlanFrom(DbAccount dbAccount) { PlanType plan; if (dbAccount.Plan == Plan.Startup) { plan = new StartupPlan(); } else { plan = new EnterprisePlan(); } return(plan); }
private static PlanType GetPlanTypeFrom(CreateAccountRequest request) { PlanType plan = null; switch (request.Plan) { case Plan.Startup: plan = new StartupPlan(); break; case Plan.Enterprise: plan = new EnterprisePlan(); break; } return(plan); }