Exemple #1
0
        public async Task EquipmentAggregateManagementServiceTests_GetAllTests()
        {
            IEquipmentAggregateManagementService service = IoCFactory.Instance.CurrentContainer.Resolve <IEquipmentAggregateManagementService>();
            IEnumerable <EquipmentAggregate>     orgs    = await service.GetAllEquipmentAsync();

            Assert.IsNotNull(orgs);
            Assert.IsTrue(orgs.Count() > 0);
        }
        // GET: Equipment
        public async Task <ActionResult> Index()
        {
            var model = await _equipmentAggregateManagementService.GetAllEquipmentAsync();

            return(View(model.ToViewModel()));
        }