Ejemplo n.º 1
0
        public async Task TotalCountAsync_ShouldReturnValidCount()
        {
            // Arrange
            FitStoreDbContext database = this.Database;

            DatabaseHelper.SeedData(database);

            IManufacturerService manufacturerService = new ManufacturerService(database);

            // Act
            int result = await manufacturerService.TotalCountAsync();

            // Assert
            result.Should().Be(10);
        }