public void Initialize(ViewRequest viewRequest) { if (!(viewRequest is ImportSchemeViewRequest importSchemeViewRequest)) { throw new ArgumentException($"Cannot initialize with request of type {viewRequest.GetType().Name}"); } _repository = importSchemeViewRequest.Repository; }