public GroupServiceTest() { _entityValidator = A.Fake<EntityValidator>(); _groupRepository = A.Fake<IGroupRepository>(); _groupDtoMapper = A.Fake<IGroupDtoMapper>(); _groupService = new GroupService(_entityValidator, _groupRepository, _groupDtoMapper); }
public GroupService(EntityValidator entityValidator, IGroupRepository groupReository, IGroupDtoMapper groupDtoMapper) { if (groupReository == null) { throw new ArgumentNullException("groupReository"); } _groupRepository = groupReository; if (entityValidator == null) { throw new ArgumentNullException("entityValidator"); } _entityValidator = entityValidator; if (groupDtoMapper == null) { throw new ArgumentNullException("groupDtoMapper"); } _groupnDtoMapper = groupDtoMapper; }