public ShellComponent() { this.ConfigurationComponent = new ConfigurationComponent(); this.OwlveyGateway = new OwlveyGateway(ConfigurationComponent); this.NotificationGateway = new NotificationGateway(ConfigurationComponent); this.AvailabilityGuardComponent = new AvailabilityGuardComponent(this.OwlveyGateway); }
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); } } }
public async Task GetMembersSuccess() { var owlvey = new OwlveyGateway(new ConfigurationComponent()); var members = await owlvey.GetMembers(); Assert.NotNull(members); }
public async Task GetCustomersSuccess() { var owlvey = new OwlveyGateway(new ConfigurationComponent()); var customers = await owlvey.GetOrganizationsWithProducts(); Assert.NotNull(customers); }
public async Task GenerateTokenSuccess() { var owlvey = new OwlveyGateway(new ConfigurationComponent()); await owlvey.GenerateToken(); Assert.NotNull(owlvey.AccessToken); }
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); } } }
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); }
public AvailabilityGuardComponent(OwlveyGateway owlveyGateway) { this.owlveyGateway = owlveyGateway; }