public void SetUp()
        {
            var customer = new Customer
            {
                Name = CustomerName
            };

            var employee = new Employee
            {
                Name = EmployeeName
            };

            var product = new Product
            {
                Name = ProductName
            };

            _sale = new Sale
            {
                Id        = SaleId,
                Date      = Date,
                Customer  = customer,
                Employee  = employee,
                Product   = product,
                UnitPrice = UnitPrice,
                Quantity  = Quantity
            };

            _mocker = new AutoMoqer();

            _query = _mocker.Create <GetSaleDetailQuery>();
        }
        public void SetUp()
        {
            var customer = new Customer
            {
                Name = CustomerName
            };

            var employee = new Employee
            {
                Name = EmployeeName
            };

            var product = new Product
            {
                Name = ProductName
            };

            _sale = new Sale()
            {
                Id        = SaleId,
                Date      = Date,
                Customer  = customer,
                Employee  = employee,
                Product   = product,
                UnitPrice = UnitPrice,
                Quantity  = Quantity
            };

            _sales = new List <Sale>()
            {
                _sale
            };

            _mocker = new AutoMoqer();

            _mocker.GetMock <ISaleRepository>()
            .Setup(p => p.GetAll())
            .Returns(_sales.AsQueryable());

            _query = _mocker.Create <GetSaleDetailQuery>();
        }