diff --git a/Tests/Controllers/CatsControllerTest.cs b/Tests/Controllers/CatsControllerTest.cs new file mode 100644 index 0000000..cd4705c --- /dev/null +++ b/Tests/Controllers/CatsControllerTest.cs @@ -0,0 +1,55 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using cat_cafe.Controllers; +using cat_cafe.Dto; +using cat_cafe.Mappers; +using cat_cafe.Repositories; +using Microsoft.AspNetCore.Mvc; +using NuGet.Protocol.Core.Types; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace cat_cafe.Controllers.Tests +{ + [TestClass()] + public class CatsControllerTest + { + [TestMethod()] + public void GetCatsTest() + { + Assert.Fail(); + } + + [TestMethod()] + public void GetCatTest() + { + Assert.Fail(); + } + + [TestMethod()] + public void PutCatTest() + { + Assert.Fail(); + } + + [TestMethod()] + public void PostCatTest() + { + Assert.Fail(); + } + + [TestMethod()] + public void DeleteCatTest() + { + Assert.Fail(); + } + + [TestMethod()] + public void CatExistsTest() + { + Assert.Fail(); + } + } +} diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index fd2e07d..42f4fd5 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,4 +1,4 @@ - + net6.0 @@ -10,16 +10,9 @@ - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + diff --git a/Tests/UnitTest1.cs b/Tests/UnitTest1.cs deleted file mode 100644 index d834b5f..0000000 --- a/Tests/UnitTest1.cs +++ /dev/null @@ -1,23 +0,0 @@ -using cat_cafe.Entities; - -namespace Tests -{ - public class UnitTest1 - { - [Fact] - public void Test1() - { - String name = "Margot"; - int id = 1337; - - Cat cat = new() - { - Id = id, - Name = name - }; - - Assert.Equal(name, cat.Name); - Assert.Equal(id, cat.Id); - } - } -} \ No newline at end of file diff --git a/Tests/Usings.cs b/Tests/Usings.cs index 8c927eb..ab67c7e 100644 --- a/Tests/Usings.cs +++ b/Tests/Usings.cs @@ -1 +1 @@ -global using Xunit; \ No newline at end of file +global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file