public void Setup() { _mockAppService = new Mock<IApplicationService>(); _inventoryViewModel = new InventoryViewModel(_mockAppService.Object); _inventoryItems = new List<InventoryItemDto>() { new InventoryItemDto() { Statusk__BackingField = Constants.ORDERED }, new InventoryItemDto() { Statusk__BackingField = Constants.IN_STOCK }, new InventoryItemDto() { Statusk__BackingField = Constants.DISTRIBUTED }, new InventoryItemDto() { Statusk__BackingField = Constants.DISTRIBUTED } }; _adminUser = new UserDto() { IsAdmin = true }; _nonAdminUser = new UserDto() { IsAdmin = false }; }
public void Setup() { _mockInventoryService = new Mock<IAthleteService>(); _inventoryViewModel = new InventoryViewModel(_mockInventoryService.Object); }