public void GetEventStyleById_NonExistingValue_ShouldNotReturnValue(int eventStyleId)
        {
            using (var scope = _iContainer.BeginLifetimeScope(AppContextType.UnitTest.ToString()))
            {
                _iEventStyleDal = scope.Resolve <IEventStyleDal>();

                var eventStyleResult = _iEventStyleDal.GetEventStyleById(eventStyleId);

                Assert.True(eventStyleResult == null);
            }
        }
 /// <summary>
 /// Select EventStyle by EventStyle Id
 /// </summary>
 /// <param name="eventStyleId">int object</param>
 /// <returns>Json object</returns>
 public string GetEventStyleById(int eventStyleId)
 {
     try
     {
         var eventStyle = _iEventStyleDal.GetEventStyleById(eventStyleId);
         return(JsonConvert.SerializeObject(eventStyle));
     }
     catch (Exception ex)
     {
         log.Error($"Exception in Method GetEventStyleById for id - {eventStyleId}", ex);
         throw;
     }
 }