Наследование: ServiceLayerImpl, IBackofficeService
        public void Index()
        {
            // Arrange
            //IBackofficeService service = new ServiceLayerImpl();
            IBackofficeService service = new BackOfficeServiceLayerImpl();
            RestaurantController controller = new RestaurantController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            ViewDataDictionary viewData = result.ViewData;

            List<RestaurantModel> restaurantList = service.GetAllRestaurants();

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Model, restaurantList);
        }
 public void Initialize()
 {
     backOfficeServiceImpl = new BackOfficeServiceLayerImpl();
 }