diff --git a/COMETwebapp.Tests/Extensions/ServiceCollectionExtensionsTestFixtures.cs b/COMETwebapp.Tests/Extensions/ServiceCollectionExtensionsTestFixtures.cs new file mode 100644 index 000000000..5ac98a09c --- /dev/null +++ b/COMETwebapp.Tests/Extensions/ServiceCollectionExtensionsTestFixtures.cs @@ -0,0 +1,50 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 RHEA System S.A. +// +// Authors: Sam Gerené, Alex Vorobiev, Alexander van Delft, Jaime Bernar, Théate Antoine +// +// This file is part of COMET WEB Community Edition +// The COMET WEB Community Edition is the RHEA Web Application implementation of ECSS-E-TM-10-25 Annex A and Annex C. +// +// The COMET WEB Community Edition is free software; you can redistribute it and/or +// modify it under the terms of the GNU Affero General Public +// License as published by the Free Software Foundation; either +// version 3 of the License, or (at your option) any later version. +// +// The COMET WEB Community Edition is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace COMETwebapp.Tests.Extensions +{ + using COMETwebapp.Extensions; + + using Microsoft.Extensions.DependencyInjection; + + using Moq; + + using NUnit.Framework; + + [TestFixture] + public class ServiceCollectionExtensionsTestFixtures + { + [Test] + public void VerifyRegistration() + { + var serviceCollection = new Mock(); + + Assert.Multiple(() => + { + Assert.That(() => serviceCollection.Object.RegisterServices(), Throws.Nothing); + Assert.That(() => serviceCollection.Object.RegisterViewModels(), Throws.Nothing); + }); + } + } +}