public async void AllDevices() { IFactoryDeviceService factoryDeviceService = new FactoryDeviceService(); var fds = (await factoryDeviceService.GetAll()).ToList(); Assert.NotNull(fds); Assert.NotEmpty(fds); Assert.Equal(30, fds.Count); }
public async void AllDevices() { using (var context = new FactoryContext(builder.Options)) { IFactoryDeviceService factoryDeviceService = new FactoryDeviceService(context); PaginationOpts paginationOpts = new PaginationOpts(); var fds = (await factoryDeviceService.GetAll(paginationOpts)).ToList(); Assert.NotNull(fds); Assert.NotEmpty(fds); Assert.Equal(50, fds.Count); } }