Пример #1
0
        public void CreateArea_WhenModelValid_ShouldInsertNewArea()
        {
            using (var scope = new TransactionScope())
            {
                var area = new AreaDto
                {
                    Description = "new Description", CoordX = 10, CoordY = 20, LayoutId = 1
                };

                var result = _venueService.CreateArea(area);

                area.Should().BeEquivalentTo(_venueService.GetArea(result), options => options.Excluding(x => x.Id));
            }
        }