Skip to content

Commit

Permalink
#46 ZELENA: Test sada prolazi, napravljena klasa GPTService i metoda
Browse files Browse the repository at this point in the history
Nema potrebe za refaktoriranjem jer je kod izrazito jednostavan.
  • Loading branch information
dmatijani committed Jun 15, 2024
1 parent 1e9cd91 commit 4770803
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Compile Include="Exceptions\MemberNotFoundException.cs" />
<Compile Include="Exceptions\NoMoreBookCopiesException.cs" />
<Compile Include="Exceptions\WrongLibraryException.cs" />
<Compile Include="F16\GPTService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="services\ArchiveServices.cs" />
<Compile Include="services\BorrowService.cs" />
Expand All @@ -82,8 +83,6 @@
<Name>EntitiesLayer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="F16\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
16 changes: 16 additions & 0 deletions Software/E_Libra/BussinessLogicLayer/F16/GPTService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BussinessLogicLayer.F16
{
public class GPTService
{
public bool SetSystemMessage(string message)
{
return true;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using BussinessLogicLayer.F16;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -20,7 +21,7 @@ public void GPTService_SetEmptySystemMessage_Runs()
var result = gptService.SetSystemMessage("");

//Assert
result.Should().Be(true);
Assert.True(result);
}
}
}

0 comments on commit 4770803

Please sign in to comment.