Esempio n. 1
0
        public SampleSystem(Workspace workspace, IInfrastructureEnvironment environment)
        {
            System   = workspace.Model.AddSoftwareSystem("Sample", "");
            Customer = workspace.Model.AddPerson(Location.External, "Customer", "Does stuff");

            Api            = new SampleApi(this);
            WebApplication = new SampleWebApplication(this, Api);
            Customer.Uses(WebApplication.Container, "does stuff");

            Customer.Uses(System, "does stuff");
        }
Esempio n. 2
0
        public SampleWebApplication(SampleSystem system, SampleApi api)
        {
            Container = system.System.AddContainer("Sample", "Sample", "ASP.NET");
            Container.Uses(api.Container, "loads data from");

            Infrastructure = new WebAppService
            {
                Name = "sample"
            };

            Infrastructure.Settings.Add(new AppServiceSetting
            {
                Name  = "apiUrl",
                Value = api.Infrastructure.Url
            });
        }