public void TestGetSetPlotsShouldGetSetPlots()
        {
            var plots = new List <Plot>();

            _scatterPlot.SetPlots(plots);
            var result = _scatterPlot.GetPlots();

            Assert.That(result, Is.EqualTo(plots));
        }
        public void SetUp()
        {
            _plot  = new Plot();
            _plots = new List <Plot> {
                _plot
            };
            _plotDto  = new PlotDto();
            _plotDtos = new List <PlotDto> {
                _plotDto
            };
            _scatterPlot = new ScatterPlotBuilder().Build();
            _scatterPlot.SetPlots(_plots);

            _mockRepository = new Mock <IViewRepository>();
            _mockRepository.Setup(p => p.Get <ScatterPlot>())
            .Returns(_scatterPlot);

            _mockAdapter = new Mock <IScatterPlotAdapter>();
            _mockAdapter.Setup(p => p.Adapt(_plots))
            .Returns(_plotDtos);

            _handler = new GetPlotsQueryHandler(
                _mockRepository.Object,
                _mockAdapter.Object);
        }