public void CreateLayout_WhenModelValid_ShouldInsertNewLayout() { using (var scope = new TransactionScope()) { var layout = new LayoutDto { Description = "Description", LayoutName = "new layout name", VenueId = 1 }; var result = _venueService.CreateLayout(layout); layout.Should() .BeEquivalentTo(_venueService.GetLayout(result), options => options.Excluding(x => x.Id)); } }