public async Task RegisterUserToAccount__ReturnsTrue() { Guid id = await CreateAccount(); await RegisterUserToAccount(id); EnderUserAccountRequest account = await GetAccount(id); Assert.Single(account.Users); }
public async Task CreateAccount__ReturnsAccount() { var request = GetCreateAccountRequest(); Guid id = await CreateAccount(request); EnderUserAccountRequest account = await GetAccount(id); Assert.Equal(request.Plan, account.CurrentPlan); Assert.Empty(account.Users); }
public async Task UpgradePlan__ReturnsAccountWithNewPlan() { Guid id = await CreateAccount(); var request = new UpgradePlanRequest() { Plan = Plan.Enterprise }; await UpgradePlan(id, request); EnderUserAccountRequest account = await GetAccount(id); Assert.Equal(request.Plan, account.CurrentPlan); }