diff --git a/Server/ReasnAPI/ReasnAPI.Tests/Services/EventServicesTest.cs b/Server/ReasnAPI/ReasnAPI.Tests/Services/EventServicesTest.cs index fc504b17..3b59ba8a 100644 --- a/Server/ReasnAPI/ReasnAPI.Tests/Services/EventServicesTest.cs +++ b/Server/ReasnAPI/ReasnAPI.Tests/Services/EventServicesTest.cs @@ -82,7 +82,7 @@ public void UpdateEvent_EventExists_EventUpdated() mockContext.Setup(c => c.Parameters).ReturnsDbSet(new List()); mockContext.Setup(c => c.Comments).ReturnsDbSet(new List()); mockContext.Setup(c => c.Participants).ReturnsDbSet(new List()); - var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object)); + var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object), new AddressService(mockContext.Object)); var result = eventService.UpdateEvent(1, eventDto); Assert.AreEqual("name1", result.Name); @@ -144,7 +144,7 @@ public void UpdateEvent_EventDoesNotExist_NullReturned() UpdatedAt =DateTime.Now }}); - var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object)); + var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object), new AddressService(mockContext.Object)); Assert.ThrowsException(() => eventService.UpdateEvent(1, eventDto)); } @@ -205,7 +205,7 @@ public void GetEventById_EventExists_EventReturned() UpdatedAt =DateTime.Now }}); - var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object)); + var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object), new AddressService(mockContext.Object)); var result = eventService.GetEventById(1); Assert.IsNotNull(result); @@ -250,7 +250,7 @@ public void GetEventById_EventDoesNotExist_NullReturned() }}); - var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object)); + var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object), new AddressService(mockContext.Object)); Assert.ThrowsException(() => eventService.GetEventById(1)); } @@ -320,7 +320,7 @@ public void DeleteEvent_EventExists_EventDeleted() mockContext.Setup(c => c.Comments).ReturnsDbSet(new List()); mockContext.Setup(c => c.Participants).ReturnsDbSet(new List()); - var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object)); + var eventService = new EventService(mockContext.Object, new ParameterService(mockContext.Object), new TagService(mockContext.Object), new CommentService(mockContext.Object), new AddressService(mockContext.Object)); eventService.DeleteEvent(1);