示例#1
0
 public ShellComponent()
 {
     this.ConfigurationComponent     = new ConfigurationComponent();
     this.OwlveyGateway              = new OwlveyGateway(ConfigurationComponent);
     this.NotificationGateway        = new NotificationGateway(ConfigurationComponent);
     this.AvailabilityGuardComponent = new AvailabilityGuardComponent(this.OwlveyGateway);
 }
示例#2
0
        public async Task GetSquadsSuccess()
        {
            DateTime start         = DateTime.Now.Date.AddDays(-90);
            DateTime end           = DateTime.Now.Date;
            var      owlvey        = new OwlveyGateway(new ConfigurationComponent());
            var      organizations = await owlvey.GetOrganizationsWithProducts();

            foreach (var item in organizations)
            {
                foreach (var product in item.Products)
                {
                    var squads = await owlvey.GetSquads(product.Id);

                    foreach (var squad in squads)
                    {
                        var squadDetail = await owlvey.GetSquadDetail(squad.Id,
                                                                      start, end);

                        Assert.NotNull(squadDetail);
                    }

                    Assert.NotNull(squads);
                }
            }
        }
示例#3
0
        public async Task GetMembersSuccess()
        {
            var owlvey  = new OwlveyGateway(new ConfigurationComponent());
            var members = await owlvey.GetMembers();

            Assert.NotNull(members);
        }
示例#4
0
        public async Task GetCustomersSuccess()
        {
            var owlvey    = new OwlveyGateway(new ConfigurationComponent());
            var customers = await owlvey.GetOrganizationsWithProducts();

            Assert.NotNull(customers);
        }
示例#5
0
        public async Task GenerateTokenSuccess()
        {
            var owlvey = new OwlveyGateway(new ConfigurationComponent());
            await owlvey.GenerateToken();

            Assert.NotNull(owlvey.AccessToken);
        }
示例#6
0
        public async Task GetProductDashboardSuccess()
        {
            DateTime start         = DateTime.Now.Date.AddDays(-15);
            DateTime end           = DateTime.Now.Date;
            var      owlvey        = new OwlveyGateway(new ConfigurationComponent());
            var      organizations = await owlvey.GetOrganizationsWithProducts();

            foreach (var item in organizations)
            {
                foreach (var product in item.Products)
                {
                    var result = await owlvey.GetProductDashboardByProduct(product.Id, start, end);

                    Assert.NotNull(result);
                }
            }
        }
示例#7
0
        public async Task GetCustomersAndServicesSuccess()
        {
            DateTime start     = DateTime.Now.Date.AddDays(-90);
            DateTime end       = DateTime.Now.Date;
            var      owlvey    = new OwlveyGateway(new ConfigurationComponent());
            var      customers = await owlvey.GetOrganizationsWithProducts();

            foreach (var item in customers)
            {
                foreach (var product in item.Products)
                {
                    var services = await owlvey.GetServicesByProduct(product.Id,
                                                                     start, end);
                }
            }
            Assert.NotNull(customers);
        }
示例#8
0
 public AvailabilityGuardComponent(OwlveyGateway owlveyGateway)
 {
     this.owlveyGateway = owlveyGateway;
 }