Example #1
0
        public void GetGroupCentreId_returns_expected_centre_id()
        {
            // Given
            const int groupId  = 1;
            const int centreId = 12;

            A.CallTo(() => groupsDataService.GetGroupCentreId(groupId))
            .Returns(centreId);

            // When
            var result = groupsService.GetGroupCentreId(groupId);

            // Then
            result.Should().Be(centreId);
        }
Example #2
0
 public int?GetGroupCentreId(int groupId)
 {
     return(groupsDataService.GetGroupCentreId(groupId));
 }