Example #1
0
        private void FillFuel()
        {
            var fc = new FuelTypeController();

            cmbFuelType.DataSource    = fc.GetAll();
            cmbFuelType.DisplayMember = "Name";
            cmbFuelType.ValueMember   = "Id";
        }
 public void Init()
 {
     _fuelTypeRepositoryMock = new Mock <IFuelTypeRepository>();
     _mapperMock             = new Mock <IMapper>();
     _sut = new FuelTypeController(_fuelTypeRepositoryMock.Object, _mapperMock.Object);
 }