Esempio n. 1
0
        public async Task InviteTenantAdminAdapter_Tests(params object[] path)
        {
            var input = new InviteTenantAdminInputGen().Get(path.OfType <InviteTenantAdminCmdInput>().Single());
            var ctx   = new BackofficeWriteContextGen().Get(path.OfType <BackofficeWriteContextInput>().Single());

            var expr = from t in BackofficeDomain.InviteTenantAdmin(input.AdminUser)
                       select t;

            var result = await TestExpr(ctx, expr, path);
        }
Esempio n. 2
0
        public async Task CreateTenantAdapter(params object[] path)
        {
            var input = new CreateTenantCmdInputGen().Get(path.OfType <CreateTenantCmdInput>().Single());
            var ctx   = new BackofficeWriteContextGen().Get(path.OfType <BackofficeWriteContextInput>().Single());

            var expr = from t in BackofficeDomain.CreateTenant(input.OrganisationId, input.TenantName,
                                                               input.Description, input.AdminEmail, input.AdminName, input.UserId)
                       select t;

            var result =
                await TestExpr(ctx, expr, path);
        }